load method

  1. @override
ImageStreamCompleter load (FileImage key)
override

Converts a key into an ImageStreamCompleter, and begins fetching the image.

Implementation

@override
ImageStreamCompleter load(FileImage key) {
  return MultiFrameImageStreamCompleter(
    codec: _loadAsync(key),
    scale: key.scale,
    informationCollector: (StringBuffer information) {
      information.writeln('Path: ${file?.path}');
    }
  );
}