copyWith method

CropRegion copyWith({
  1. int? x,
  2. int? y,
  3. int? width,
  4. int? height,
  5. double? cornerRadius,
})

Returns a copy with selected values replaced.

Implementation

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