Triangle.points constructor Null safety

Triangle.points(
  1. Vector3 point0,
  2. Vector3 point1,
  3. Vector3 point2
)

Create a triangle by three points.

Implementation

Triangle.points(Vector3 point0, Vector3 point1, Vector3 point2)
    : _point0 = Vector3.copy(point0),
      _point1 = Vector3.copy(point1),
      _point2 = Vector3.copy(point2);