loadAsync method

  1. @Deprecated('use loadBufferAsync instead')
Stream<Codec> loadAsync(
  1. String url,
  2. String? cacheKey,
  3. StreamController<ImageChunkEvent> chunkEvents,
  4. dynamic decode,
  5. BaseCacheManager cacheManager,
  6. int? maxHeight,
  7. int? maxWidth,
  8. Map<String, String>? headers,
  9. dynamic errorListener()?,
  10. ImageRenderMethodForWeb imageRenderMethodForWeb,
  11. dynamic 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

@Deprecated('use loadBufferAsync instead')
Stream<ui.Codec> loadAsync(
  String url,
  String? cacheKey,
  StreamController<ImageChunkEvent> chunkEvents,
  DecoderCallback decode,
  BaseCacheManager cacheManager,
  int? maxHeight,
  int? maxWidth,
  Map<String, String>? headers,
  Function()? errorListener,
  ImageRenderMethodForWeb imageRenderMethodForWeb,
  Function() evictImage,
) {
  throw UnimplementedError();
}