load method
PictureStreamCompleter
load(
- AssetBundlePictureKey key, {
- PictureErrorListener? onError,
override
Converts a key into an PictureStreamCompleter, and begins fetching the
picture using _loadAsync
.
Implementation
@override
PictureStreamCompleter load(AssetBundlePictureKey key,
{PictureErrorListener? onError}) {
return OneFramePictureStreamCompleter(_loadAsync(key, onError),
informationCollector: () sync* {
yield DiagnosticsProperty<PictureProvider>('Picture provider', this);
yield DiagnosticsProperty<AssetBundlePictureKey>('Picture key', key);
});
}