containsAll method

bool containsAll(
  1. Iterable<E> other
)

Checks if all elements in the specified collection are contained in this collection.

Implementation

bool containsAll(Iterable<E> other) {
  var result = true;

  for (final element in other) {
    result &= contains(element);
  }

  return result;
}