load method

  1. @override
ImageStreamCompleter load (AssetBundleImageKey key)
override

Converts a key into an ImageStreamCompleter, and begins fetching the image using loadAsync.

Implementation

@override
ImageStreamCompleter load(AssetBundleImageKey key) {
  return MultiFrameImageStreamCompleter(
    codec: _loadAsync(key),
    scale: key.scale,
    informationCollector: (StringBuffer information) {
      information.writeln('Image provider: $this');
      information.write('Image key: $key');
    }
  );
}