uint8List method

Future<Uint8List?> uint8List({
  1. ImageByteFormat format = ImageByteFormat.rawRgba,
})

Get the Uint8List data of the image.

Implementation

Future<Uint8List?> uint8List(
    {ImageByteFormat format = ImageByteFormat.rawRgba}) async {
  final ByteData? byteData = await toByteData(format: format);
  return byteData?.buffer.asUint8List();
}