containsAll method

bool containsAll(
  1. Iterable<E> elements
)

Returns true if the collection contains all elements from the elements.

Order of elements does not matter.

See contains.

Implementation

bool containsAll(Iterable<E> elements) {
  for (final e in elements) {
    if (!contains(e)) return false;
  }

  return true;
}