copyWith method
Creates a copy with selected values replaced.
Implementation
CanvasCircle copyWith({
String? id,
String? name,
CanvasPaint? paint,
double? rotation,
bool? locked,
bool? hidden,
double? x,
double? y,
double? radius,
}) {
return CanvasCircle(
id: id ?? this.id,
name: name ?? this.name,
paint: paint ?? this.paint,
rotation: rotation ?? this.rotation,
locked: locked ?? this.locked,
hidden: hidden ?? this.hidden,
x: x ?? this.x,
y: y ?? this.y,
radius: radius ?? this.radius,
);
}