pickImageFromCamera method
Implementation
Future<File?> pickImageFromCamera() async {
try {
var image = await (_picker.pickImage(
source: ImageSource.camera, imageQuality: 50));
if (image != null) {
File? file = File(image.path);
//log('image gotten');
return file;
} else {
return null;
}
} catch (e) {
//log(e.toString());
return null;
}
}