asset_cache 2.2.0
asset_cache: ^2.2.0 copied to clipboard
Load and cache binary asset of any type given a decoder. Built in support for byte data, images, json and text.
2.2.0 25 June 2025 #
- updated dependencies and Dart SDK constraints
- add cache management methods:
clear()
,remove()
,contains()
,size
- add
preload()
method for concurrent asset loading - add custom exceptions:
AssetCacheException
,AssetNotFoundException
,DecodingException
,PreLoadingAssetsNotFoundException
2.1.0 6 dec 2023 #
- update packages
- use super in constructors
2.0.0 21 April 2022 #
- make AssetDecoder return FutureOr and simplify decoders
- make 'decoder' a named constructor parameter
- rename bundle -> assetBundle
- improve docs
- add tests for all cache types
- rename StringAssetCache -> TextAssetCache
1.0.1 13 February 2022 #
- make members final
- cleanup
- update license name / year
1.0.0+1 12 March 2021 #
- pubspec description
1.0.0 12 March 2021 #
- migrate to null-safety
0.3.0+2 12 March 2021 #
- update README
0.3.0+1 12 March 2021 #
- update README
0.3.0 12 March 2021 #
- breaking changes !!
- replaced Singeltons with public constructors
- pass optional basePath and bundle in constructors
- don't make decoders static
- rename special asset cache implementations to {Type}AssetCache
- update example to use ImageAssetCache
- use path to join basePath and asset name
- code cleanup
0.2.3 #
- update README
0.2.2 #
- update README
0.2.1 #
- update pubspec.yaml
- format
0.2.0 #
- split up asset_cache in multiple files
- changed Uint8List decoder class to use ByteData
- updated README
0.1.4 #
- update README | format
0.1.3 #
- update README
0.1.2 #
- update README
0.1.1 #
- update README
0.1.0 #
- initial release
- generic asset cache for loading assets given a decoder
- a set of asset cache implementations for images, json files and strings
- a generic cache class
- tests
- examples