cropImage method
Implementation
Future<CroppedFile?> cropImage(
File imageFile, ImageManipulationSettings cropSettings) async {
final CroppedFile? croppedFile = await ImageCropper().cropImage(
sourcePath: imageFile.path,
aspectRatio: cropSettings.aspectRatio,
maxWidth: cropSettings.maxWidth,
maxHeight: cropSettings.maxHeight,
);
return croppedFile;
}