load method

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

Implementation

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