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