addAll method

int addAll(
  1. Iterable<E> elements
)

Adds each element of the provided elements to this and returns the number of elements added.

Implementation

int addAll(Iterable<E> elements) {
  final lengthBefore = _length;
  for (final element in elements) {
    add(element);
  }
  return _length - lengthBefore;
}