loadImageAsync method

Stream<Codec> loadImageAsync(
  1. String url,
  2. String? cacheKey,
  3. StreamController<ImageChunkEvent> chunkEvents,
  4. ImageDecoderCallback decode,
  5. BaseCacheManager cacheManager,
  6. int? maxHeight,
  7. int? maxWidth,
  8. Map<String, String>? headers,
  9. ErrorListener? errorListener,
  10. ImageRenderMethodForWeb imageRenderMethodForWeb,
  11. VoidCallback evictImage,
)

loads the images async and gives the resulted codecs on a Stream. The Stream gives the option to show multiple images after each other.

Implementation

Stream<ui.Codec> loadImageAsync(
  String url,
  String? cacheKey,
  StreamController<ImageChunkEvent> chunkEvents,
  ImageDecoderCallback decode,
  BaseCacheManager cacheManager,
  int? maxHeight,
  int? maxWidth,
  Map<String, String>? headers,
  ErrorListener? errorListener,
  ImageRenderMethodForWeb imageRenderMethodForWeb,
  VoidCallback evictImage,
) {
  throw UnimplementedError();
}