Point constructor Null safety

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

Implementation

Point({
  double? x,
  double? y,
  double? z,
}):
this.x = x ?? 0.0,
this.y = y ?? 0.0,
this.z = z ?? 0.0;