getRenderableImageBytes method
- Size? size,
- ImageFileFormat format = ImageFileFormat.png,
Get the image data as a Uint8List.
Display the image on UI using the Image.memory constructor.
Parameters
- IN size The image size as (width, height).
- IN format The image format. By default it is PNG.
Returns
Implementation
Uint8List? getRenderableImageBytes({
Size? size,
ImageFileFormat format = ImageFileFormat.png,
}) {
return getRenderableImage(size: size, format: format)?.bytes;
}