getCoordinate method

Coordinate? getCoordinate()
override

@return a coordinate in this component (or null, if there are none)

Implementation

Coordinate? getCoordinate() {
  if (pts.length > 0) return pts[0];
  return null;
}