Point<T extends num> constructor Null safety

const Point<T extends num>(
  1. T x,
  2. T y
)

Implementation

const Point(T x, T y)
    : this.x = x,
      this.y = y;