getGallery static method
Implementation
static Future getGallery() async {
final ImagePicker picker = ImagePicker();
final XFile? image = await picker.pickImage(source: ImageSource.gallery);
if (image != null) {
return image.path;
}
return null;
}