copyWith method
Copies the line.
Implementation
Line3D copyWith({
Vector3? a,
Vector3? b,
double? width,
Color? color,
}) {
return Line3D(
a ?? this.a,
b ?? this.b,
width: width ?? this.width,
color: color ?? this.color,
);
}