getEndPoint method

Point? getEndPoint()

Implementation

Point? getEndPoint() {
  if (isEmpty()) {
    return null;
  }
  return getPointN(getNumPoints() - 1);
}