ImageDecoderCallback typedef
Performs the decode process for use in ImageProvider.loadImage.
This callback allows decoupling of the getTargetSize
parameter from
implementations of ImageProvider that do not expose it.
See also:
- ResizeImage, which uses this to load images at specific sizes.
Implementation
typedef ImageDecoderCallback = Future<ui.Codec> Function(
ui.ImmutableBuffer buffer, {
ui.TargetImageSizeCallback? getTargetSize,
});