discontinuedPackage webapp has been discontinued and replaced by finch.

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(WebRequest rq)
Creates an instance of IncludeJsController.

Properties

hashCode → int
The hash code for this object.
no setterinherited
rq ↔ WebRequest
The WebRequest object representing the current web request.
getter/setter pairinherited
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({dynamic short = false}) → String
Returns a string representation of the controller.
inherited

Operators

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