createImageCodecFromUrl function

Future<Codec> createImageCodecFromUrl(
  1. Uri uri, {
  2. ImageCodecChunkCallback? chunkCallback,
})

Creates a ui.Codec for the image located at uri.

The chunkCallback is called with progress updates as image chunks are loaded.

Implementation

Future<ui.Codec> createImageCodecFromUrl(
  Uri uri, {
  ImageCodecChunkCallback? chunkCallback,
}) {
  return renderer.instantiateImageCodecFromUrl(
    uri,
    chunkCallback: chunkCallback,
  );
}