copyWith method

  1. @override
Point3 copyWith({
  1. num? x,
  2. num? y,
  3. num? z,
  4. num? m,
})
override

Copies this point with optional x, y, z and m overriding values.

The copied point is compatible by coordinate type with this point.

Optional x, y, z and m values, when given, override values of this point object. If the type of this point does not have a certain value, then it's ignored.

Implementation

@override
Point3 copyWith({num? x, num? y, num? z, num? m}) => Point3(
      x: x ?? this.x,
      y: y ?? this.y,
      z: z ?? this.z,
    );