DynamicImageCrop constructor
const
DynamicImageCrop({
- required Uint8List image,
- required CropController controller,
- required void onResult(),
- ImageByteFormat? imageByteFormat,
- Color? cropLineColor,
- double? cropLineWidth,
- 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,
});