DynamicImageCrop constructor

const DynamicImageCrop({
  1. required Uint8List image,
  2. required CropController controller,
  3. required void onResult(
    1. Uint8List resultImage,
    2. int width,
    3. int height
    ),
  4. ImageByteFormat? imageByteFormat,
  5. Color? cropLineColor,
  6. double? cropLineWidth,
  7. Key? key,
})

Input image as bytes(Uint8List).

Declare CropController variable and input it to control this Widget.

onResult is a callback function that returns the cropped image, width, and height.

Implementation

const DynamicImageCrop({
  required this.image,
  required this.controller,
  required this.onResult,
  this.imageByteFormat,
  this.cropLineColor,
  this.cropLineWidth,
  super.key,
});