copyWith method

Sp3dV3D copyWith({
  1. double? x,
  2. double? y,
  3. double? z,
})

Creates a copy with only the specified values rewritten.

  • x : The x coordinate of the 3D vertex.
  • y : The y coordinate of the 3D vertex.
  • z : The z coordinate of the 3D vertex.

Implementation

Sp3dV3D copyWith({double? x, double? y, double? z}) {
  return Sp3dV3D(x ?? this.x, y ?? this.y, z ?? this.z);
}