pickImage static method

Future<String> pickImage({
  1. required ImageSource source,
  2. bool crop = false,
})

Implementation

static Future<String> pickImage(
    {required ImageSource source, bool crop = false}) async {
  final ImagePicker picker = ImagePicker();
  var img = await picker.pickImage(
      source: source, maxWidth: 1080, imageQuality: 95);
  return await uploadImage(img, crop: crop);
}