onImage abstract method
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,
});