addAll method

  1. @override
void addAll(
  1. Iterable<E> elements
)
override

Adds all elements to the queue.

Implementation

@override
void addAll(Iterable<E> elements) {
  var modified = 0;
  for (var element in elements) {
    modified = 1;
    _add(element);
  }
  _modificationCount += modified;
}