copyWith method
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,
);
}