addAll method

int addAll(
  1. Iterable<E> es
)

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

Since elements are always added, this should always return the length of es.

Implementation

int addAll(Iterable<E> es) {
  return es.map(add).where((e) => e).length;
}