addWithRepeated method

void addWithRepeated(
  1. Coordinate pt,
  2. bool allowRepeatedPoints
)

Adds a point to the current line.

@param pt the Coordinate to add

Implementation

void addWithRepeated(Coordinate pt, bool allowRepeatedPoints) {
  if (coordList == null) coordList = new CoordinateList();
  coordList!.addCoord(pt, allowRepeatedPoints);
  lastPt = pt;
}