copyWith method

Line3D copyWith({
  1. Vector3? a,
  2. Vector3? b,
  3. double? width,
  4. Color? color,
  5. String? label,
  6. double? labelPosition,
  7. Vector3? labelOffset,
})

Copies the line.

Implementation

Line3D copyWith({
  Vector3? a,
  Vector3? b,
  double? width,
  Color? color,
  String? label,
  double? labelPosition,
  Vector3? labelOffset,
}) {
  return Line3D(
    a ?? this.a,
    b ?? this.b,
    width: width ?? this.width,
    color: color ?? this.color,
    label: label ?? this.label,
    labelPosition: labelPosition ?? this.labelPosition,
    labelOffset: labelOffset ?? this.labelOffset,
  );
}