toUint8List method

Future<Uint8List?> toUint8List()

Implementation

Future<Uint8List?> toUint8List() async {
  await toByteData();
  _imageAsUint8list = _imageAsByteData?.buffer.asUint8List();
  return _imageAsUint8list;
}