AssetManifest class abstract
Contains details about available assets and their variants. See Resolution-aware image assets to learn about asset variants and how to declare them.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAssetVariants(
String key) → List< AssetMetadata> ? - Retrieves metadata about an asset and its variants. Returns null if the key was not found in the asset manifest.
-
listAssets(
) → List< String> - Lists the keys of all main assets. This does not include assets that are variants of other assets.
-
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
Static Methods
-
loadFromAssetBundle(
AssetBundle bundle) → Future< AssetManifest> - Loads asset manifest data from an AssetBundle object and creates an AssetManifest object from that data.