JsonAssetCache class
Asset cache for JSON files
- Inheritance
-
- Object
- GenericCache
- AssetCache
- JsonAssetCache
Constructors
- JsonAssetCache({String? basePath, AssetBundle? assetBundle})
Properties
- assetBundle → AssetBundle?
-
Optional asset bundle
finalinherited
- basePath → String?
-
Optional base path so you don't have to type full path
finalinherited
- decoder → AssetDecoder
-
Decode asset bytes to type T
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
load(
String key) → Future -
Load an asset from the cache or load it from the asset bundle and cache it
inherited
-
loadAsset(
String key) → Future -
Load and decode an asset from a bundle given a
key
inherited -
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