createImageCodecFromUrl function
- Uri uri, {
- 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,
);
}