ImageCodecChunkCallback typedef

ImageCodecChunkCallback = void Function(int cumulativeBytesLoaded, int expectedTotalBytes)

Signature of the callback that receives progress updates as image chunks are loaded.

Implementation

typedef ImageCodecChunkCallback = void Function(
  int cumulativeBytesLoaded,
  int expectedTotalBytes,
);