getImageAsWidget static method
Picker that close after selecting 1 image and return an Image.memory using the image's bytes.
Implementation
static Future<Image?> getImageAsWidget() async {
final file = await ImagePickerWeb._pickFile('image');
return file != null
? Image.memory(await file.asBytes(), semanticLabel: file.name)
: null;
}