addAll method

bool addAll(
  1. List<Coordinate> coll,
  2. bool allowRepeated
)

Add an array of coordinates

  • @param coll The coordinates
  • @param allowRepeated if set to false, repeated coordinates are collapsed
  • @return true (as by general collection contract)

Implementation

bool addAll(List<Coordinate> coll, bool allowRepeated) {
  bool isChanged = false;
  for (var c in coll) {
    addCoord(c, allowRepeated);
    isChanged = true;
  }

  return isChanged;
}