load method

  1. @override
ImageStreamCompleter load(
  1. AdvancedNetworkImage key,
  2. dynamic decode
)

Implementation

@override
ImageStreamCompleter load(AdvancedNetworkImage key, DecoderCallback decode) {
  final chunkEvents = StreamController<ImageChunkEvent>();

  return MultiFrameImageStreamCompleter(
    codec: _loadAsync(key, decode, chunkEvents),
    // chunkEvents: chunkEvents.stream, // TODO
    scale: key.scale,
    informationCollector: () sync* {
      yield DiagnosticsProperty<ImageProvider>('Image provider', this);
      yield DiagnosticsProperty<AdvancedNetworkImage>('Image key', key);
    },
  );
}