image static method
Implementation
static Image image(XFile pickedFile) {
if (kIsWeb) {
// see https://pub.dev/packages/image_picker_for_web#limitations-on-the-web-platform
return Image.network(pickedFile.path); // web case
} else {
return Image.file(File(pickedFile.path)); // ios, android case
}
}