copyWith method

CropRect copyWith({
  1. double? x,
  2. double? y,
  3. double? width,
  4. double? height,
})

Implementation

CropRect copyWith({
  double? x,
  double? y,
  double? width,
  double? height,
}) {
  return CropRect(
    x: x ?? this.x,
    y: y ?? this.y,
    width: width ?? this.width,
    height: height ?? this.height,
  );
}