copyWith method

Point3D copyWith({
  1. Vector3? position,
  2. double? width,
  3. Color? color,
  4. String? label,
})

Copies the point.

Implementation

Point3D copyWith(
    {Vector3? position, double? width, Color? color, String? label}) {
  return Point3D(
    position ?? this.position,
    width: width ?? this.width,
    color: color ?? this.color,
    label: label ?? this.label,
  );
}