getX method

double getX()

Implementation

double getX() {
  if (getCoordinate() == null) {
    throw new StateError("getX called on empty Point");
  }
  return getCoordinate()!.x;
}