load method

  1. @override
PictureStreamCompleter load(
  1. AdvancedNetworkSvg key, {
  2. PictureErrorListener? onError,
})

Converts a key into an PictureStreamCompleter, and begins fetching the picture.

Implementation

@override
PictureStreamCompleter load(AdvancedNetworkSvg key,
    {PictureErrorListener? onError}) {
  return OneFramePictureStreamCompleter(
    _loadAsync(key, onError: onError),
    informationCollector: () sync* {
      yield DiagnosticsProperty<PictureProvider>('Picture provider', this);
      yield DiagnosticsProperty<AdvancedNetworkSvg>('Picture key', key);
    },
  );
}