CropPreview constructor
const
CropPreview({
- required Uint8List bytes,
- Key? key,
- CropController? controller,
- CropMode mode = CropMode.rect,
- MaskOptions maskOptions = const MaskOptions(),
- double dragPointSize = 20,
- CropDragPointBuilder? dragPointBuilder,
- double hitSize = 20,
- Widget loadingWidget = const SizedBox.shrink(),
Constructs a CropPreview.
Implementation
const CropPreview({
required this.bytes,
super.key,
this.controller,
this.mode = CropMode.rect,
this.maskOptions = const MaskOptions(),
this.dragPointSize = 20,
this.dragPointBuilder,
this.hitSize = 20,
this.loadingWidget = const SizedBox.shrink(),
}) : assert(dragPointSize > 0, 'dragPointSize must be greater than 0!');