pickVideoFromGallery method
Implementation
Future<File?> pickVideoFromGallery() async {
try {
var image = await (_picker.pickVideo(source: ImageSource.gallery));
if (image != null) {
File? file = File(image.path);
//log('video gotten');
return file;
} else {
return null;
}
} catch (e) {
//log(e.toString());
return null;
}
}