Asset class
Represents an asset (like JS or CSS) in the web application.
The Asset class is used to manage individual assets, including their path, type, and cache settings. It provides methods for constructing the correct URL for the asset, considering cache policies.
Constructors
Properties
-
attrs
↔ Map<
String, Object> -
getter/setter pair
- cache ↔ AssetCache
-
getter/setter pair
-
data
↔ Map<
String, Object> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- rq ↔ WebRequest
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ AssetType
-
getter/setter pair
- url → String
-
Returns the URL of the asset, considering cache settings.
no setter
Methods
-
addData(
Map< String, String> params) → Asset - Adds additional data to the asset's data map.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited