openGallery static method

Future<CroppedFile?> openGallery()

Implementation

static Future<CroppedFile?> openGallery() async {
  final image = await _picker.pickImage(source: ImageSource.gallery);
  if (image == null) return null;

  return cropImage(image.path);
}