copyWith method

CropOptions copyWith({
  1. CropRect? cropRect,
  2. bool? enableCrop,
  3. double? aspectRatio,
  4. bool? freeform,
  5. bool? showGrid,
  6. bool? lockAspectRatio,
})

Implementation

CropOptions copyWith({
  CropRect? cropRect,
  bool? enableCrop,
  double? aspectRatio,
  bool? freeform,
  bool? showGrid,
  bool? lockAspectRatio,
}) {
  return CropOptions(
    cropRect: cropRect ?? this.cropRect,
    enableCrop: enableCrop ?? this.enableCrop,
    aspectRatio: aspectRatio ?? this.aspectRatio,
    freeform: freeform ?? this.freeform,
    showGrid: showGrid ?? this.showGrid,
    lockAspectRatio: lockAspectRatio ?? this.lockAspectRatio,
  );
}