handlePickImage method
Implementation
void handlePickImage(Function(File pickedFile)? onPick) async {
var res = await ImagePicker.platform.getImageFromSource(
source: ImageSource.gallery,
options: ImagePickerOptions(
maxHeight: pickMaxHeight ?? 96 * 1.5,
maxWidth: pickMaxWidth ?? 96 * 1.5,
),
);
if (res == null) return;
File file = File(res.path);
onPick!(file);
}