addAll method

bool addAll (Iterable<V> items)
override

Adds all elements to this Set.

Equivalent to adding each element in elements using add, but some collections may be able to optimize it.

Implementation

bool addAll(Iterable<V> items) {
  bool modified = false;
  for (V ele in items) {
    modified = add(ele) ? true : modified;
  }
  return modified;
}