getImageAsBytes static method
Picker that close after selecting 1 image and return a Uint8List of the selected image.
Implementation
static Future<Uint8List?> getImageAsBytes() async {
final file = await ImagePickerWeb._pickFile('image');
return file?.asBytes();
}