containsAll method

bool containsAll(
  1. Iterable<E> collection
)

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

Implementation

bool containsAll(Iterable<E> collection) {
  for (var element in collection) {
    if (!contains(element)) return false;
  }
  return true;
}