Data bundled with a Dart or Flutter application.
A data asset is accessible in a Dart or Flutter application. To retrieve an asset at runtime, the id is used. This enables access to the asset irrespective of how and where the application is run.
An data asset must provide a Asset.file. The Dart and Flutter SDK will bundle this code in the final application.
- Implemented types
Constructors
Properties
- file → Uri?
-
The file to be bundled with the Dart or Flutter application.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The identifier for this asset.
no setterinherited
- name → String
-
The name of this asset, which must be unique for the package.
no setter
- package → String
-
The package which contains this asset.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited