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
-
- Object
- Controller
- IncludeJsController
Constructors
- IncludeJsController()
- Creates an instance of IncludeJsController.
Properties
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