addCoord method
Adds a coordinate to the end of the list.
@param coord The coordinates @param allowRepeated if set to false, repeated coordinates are collapsed
Implementation
void addCoord(Coordinate coord, bool allowRepeated) {
// don't add duplicate coordinates
if (!allowRepeated) {
if (_backingList.length >= 1) {
Coordinate last = _backingList.last;
if (last.equals2D(coord)) return;
}
}
_backingList.add(coord);
}