copyWith method

Line3D copyWith({
  1. Vector3? a,
  2. Vector3? b,
  3. double? width,
  4. Color? color,
})

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