AnimatedImageProvider.fromAsset constructor

AnimatedImageProvider.fromAsset(
  1. String name, {
  2. AssetBundle? bundle,
  3. String? package,
  4. String? id,
  5. 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);