TextAssetCache class
Asset cache for text files
- Inheritance
-
- Object
- GenericCache<
String> - AssetCache<
String> - TextAssetCache
Constructors
- TextAssetCache({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<
String> -
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< String> -
Load an asset from the cache or load it from the asset bundle and cache it
inherited
-
loadAsset(
String key) → Future< String> -
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