GenericCache<T> class abstract

Abstract generic cache of type T

Implementers

Constructors

GenericCache({String? basePath})
Constructor for GenericCache with optional basePath

Properties

basePath String?
Optional base path so you don't have to type full path
final
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<T>
Load an asset from the cache or load it from the asset bundle and cache it
loadAsset(String key) Future<T>
Load and decode an asset from a bundle given a key
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