cropImage method

  1. @override
Future<String?> cropImage({
  1. required String sourcePath,
  2. double? aspectRatioX,
  3. double? aspectRatioY,
  4. List<CropAspectRatioPreset>? aspectRatioPresets,
  5. int quality = 90,
})
override

Implementation

@override
Future<String?> cropImage({
  required String sourcePath,
  double? aspectRatioX,
  double? aspectRatioY,
  List<CropAspectRatioPreset>? aspectRatioPresets,
  int quality = 90,
}) async {
  // We are not implementing the web platform, so we throw an error.
  throw UnimplementedError('cropImage() has not been implemented on the web.');
}