addAll method

int addAll(
  1. Iterable<E> elements
)
inherited

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;
}