SeniorImageCropper constructor

SeniorImageCropper({
  1. required String cropperTitle,
  2. required String takePhotoLabel,
  3. required String pickImageLabel,
  4. String? doneButtonLabel,
  5. String? cancelButtonLabel,
  6. required dynamic onCropImage(
    1. File croppedImage
    ),
  7. int? maxSizeMb,
  8. VoidCallback? onPermissionCameraDenied,
  9. VoidCallback? onPermissionGalleryDenied,
  10. dynamic onException(
    1. Object e
    )?,
  11. SeniorImageCropperStyle? style,
})

Creates the SDS Image Cropper component. The parameters cropperTitle, takePhotoLabel, pickImageLabel, onCropImage, onPermissionCameraDenied and onPermissionGalleryDenied are required.

Implementation

SeniorImageCropper({
  required this.cropperTitle,
  required this.takePhotoLabel,
  required this.pickImageLabel,
  this.doneButtonLabel,
  this.cancelButtonLabel,
  required this.onCropImage,
  this.maxSizeMb,
  this.onPermissionCameraDenied,
  this.onPermissionGalleryDenied,
  this.onException,
  this.style,
});