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: () => <DiagnosticsNode>[
DiagnosticsProperty<PictureProvider>('Picture provider', this),
DiagnosticsProperty<AssetBundlePictureKey>('Picture key', key),
],
);
}