Repository navigation
v2.1.0
- Improve the cache to ensure that the animation is available on the first frame.
The methodAssetLottie('anim.json').load()returns aSynchronousFutureif it has been loaded previously. - Expose the
LottieCachesingleton.
It allows to change the cache behaviour and clear the entries.
void main() {
Lottie.cache.maximumSize = 10;
Lottie.cache.clear();
Lottie.cache.evict(NetworkLottie('https://lottie.com/anim.json'));
}