AnimatedImageProvider.fromAsset constructor
AnimatedImageProvider.fromAsset(
- String name, {
- AssetBundle? bundle,
- String? package,
- String? id,
- Function? onError,
Implementation
AnimatedImageProvider.fromAsset(String name,
{AssetBundle? bundle, String? package, String? id, Function? onError})
: this.fromRawData(
() => (bundle ?? rootBundle)
.load(package == null ? name : 'packages/$package/$name'),
id: id,
onError: onError);