onImage abstract method

void onImage(
  1. int imageId,
  2. int format,
  3. Uint8List data, {
  4. VectorGraphicsErrorListener? onError,
})

An encoded image has been decoded.

The format is one of the values in ImageFormatTypes.

If the onError callback is not null, it must be called if an error occurs while attempting to decode the image data.

Implementation

void onImage(
  int imageId,
  int format,
  Uint8List data, {
  VectorGraphicsErrorListener? onError,
});