openCropper method

Future<HLPickerItem> openCropper(
  1. String imagePath, {
  2. HLCropOptions? cropOptions,
  3. LocalizedImageCropper? localized,
})

Open image cropper

imagePath: Path of the image that needs to be cropped

cropOptions: Configuration options for the cropping functionality: aspectRatio, aspectRatioPresets, compressQuality, compressFormat

localized: Custom text displayed for the plugin

Returns a HLPickerItem object

Implementation

Future<HLPickerItem> openCropper(
  String imagePath, {
  HLCropOptions? cropOptions,
  LocalizedImageCropper? localized,
}) async {
  return platform.openCropper(
    imagePath,
    cropOptions: cropOptions,
    localized: localized,
  );
}