asset_cache library

Classes

AssetCache<T>
Generic cache for loading assets of type T given an AssetDecoder
ByteDataAssetCache
Asset cache for ByteData
GenericCache<T>
Abstract generic cache of type T
ImageAssetCache
Asset cache for Image assets
JsonAssetCache
Asset cache for JSON files
TextAssetCache
Asset cache for text files

Typedefs

AssetDecoder<T> = FutureOr<T> Function(ByteData)
Given a ByteData return a type T

Exceptions / Errors

AssetCacheException
Base exception class for asset cache operations
AssetNotFoundException
Exception thrown when an asset cannot be found or loaded
DecodingException
Exception thrown when an asset cannot be decoded to the expected type
PreLoadingAssetsNotFoundException