ThumbnailGeneratedCallback typedef

ThumbnailGeneratedCallback = Future<void> Function(Uint8List thumbnailBytes, Image rawImage)

A callback function type that is invoked when a thumbnail image is generated.

This callback provides the generated thumbnail image bytes and the raw image as its parameters. It is expected to return a Future<void>, allowing for asynchronous operations to be performed if needed.

The thumbnailBytes parameter contains the bytes of the generated thumbnail image. The rawImage parameter contains the raw ui.Image object of the original image.

Implementation

typedef ThumbnailGeneratedCallback = Future<void> Function(
    Uint8List thumbnailBytes, ui.Image rawImage);