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