uint8List method
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();
}