Cache<T extends CacheAsset> class
abstract
A base class for loading cached resources
- Implementers
Constructors
- Cache()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPruningEnabled → bool
-
no setter
- pruneAfter → Duration
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
drop(
T asset) → void -
getAsset(
AssetProvider assetProvider) → Future< T> - Get an asset from the cache or load it.
-
getWarmAsset(
AssetProvider assetProvider) → T? - Get an asset from the cache.
-
hold(
T asset) → void -
makeAsset(
) → T -
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