toPoint method

Point<double> toPoint()

Converts this to a Point.

Throws if x or y is null.

Implementation

Point<double> toPoint() {
  assert(x != null);
  assert(y != null);
  return Point<double>(x!, y!);
}