addAll method

  1. @override
bool addAll (
  1. 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

@override
bool addAll(Iterable<V> items) {
  bool modified = false;
  for (final item in items) {
    if (add(item)) {
      modified = true;
    }
  }
  return modified;
}