load method
Implementation
@override
Future<LottieComposition> load() {
return sharedLottieCache.putIfAbsent(this, () async {
var resolved = Uri.base.resolve(url);
var bytes = await network.loadHttp(resolved, headers: headers);
var composition = await LottieComposition.fromBytes(bytes,
name: p.url.basenameWithoutExtension(url),
imageProviderFactory: imageProviderFactory);
for (var image in composition.images.values) {
image.loadedImage ??= await _loadImage(resolved, composition, image);
}
return composition;
});
}