IncludeJsController class

A controller responsible for injecting JavaScript for client-side operations. This controller generates a JavaScript snippet that contains global configuration and translation functions. The generated JavaScript can be used on the client-side to handle localization and dynamic URL generation.

Inheritance

Constructors

IncludeJsController()
Creates an instance of IncludeJsController.

Properties

hashCode → int
The hash code for this object.
no setterinherited
rq → Request
Gets the current WebRequest from the request context
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

index({Map<String, Object?> params = const {}}) → Future<String>
Handles the inclusion of JavaScript in the response.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString({bool short = false}) → String
Returns a string representation of the controller.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited