getImageWithoutCropping method
Picks an image from the given source without cropping.
imageSource specifies whether the image is from the camera or gallery.
Implementation
Future<void> getImageWithoutCropping(
ImageSource imageSource, String type) async {
XFile? imageFile = await picker.pickImage(source: imageSource);
if (imageFile != null) {
getImageCompressed(imageFile, type);
} else {
callback.error('No Image Selected');
}
}