CropPreview constructor

const CropPreview({
  1. required Uint8List bytes,
  2. Key? key,
  3. CropController? controller,
  4. CropMode mode = CropMode.rect,
  5. MaskOptions maskOptions = const MaskOptions(),
  6. double dragPointSize = 20,
  7. CropDragPointBuilder? dragPointBuilder,
  8. double hitSize = 20,
  9. 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!');