getRenderableImageBytes method

  1. @override
Uint8List? getRenderableImageBytes({
  1. Size? size,
  2. ImageFileFormat format = ImageFileFormat.png,
})
override

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). If no value is provided then the recomended size for the image will be used.
  • IN format The image format. By default it is PNG.

Returns

Implementation

@override
Uint8List? getRenderableImageBytes({
  Size? size,
  ImageFileFormat format = ImageFileFormat.png,
}) {
  return super.getRenderableImageBytes(size: size, format: format);
}