copyWith method
Creates a copy of this but with the given fields replaced with the new values.
Implementation
@override
OvalDrawable copyWith({
bool? hidden,
Set<ObjectDrawableAssist>? assists,
Offset? position,
double? rotation,
double? scale,
Size? size,
Paint? paint,
bool? locked,
}) {
return OvalDrawable(
hidden: hidden ?? this.hidden,
assists: assists ?? this.assists,
position: position ?? this.position,
rotationAngle: rotation ?? rotationAngle,
scale: scale ?? this.scale,
size: size ?? this.size,
locked: locked ?? this.locked,
paint: paint ?? this.paint,
);
}