imageData property

Uint8List? imageData

Here the getter returns a PickedFile which you can use this imageData returns Uint8List which you can use in any platform such as Android, iOS, Web etc to upload to your server such as cloudFirestore for example: for file => File.fromRawPath(imageData);

Implementation

///this [imageData] returns Uint8List which you can use in any platform
///such as Android, iOS, Web etc
///to upload to your server such as cloudFirestore
///for example: for file => File.fromRawPath(imageData);
Uint8List? get imageData => _pickedImageUInt8List.value;