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