containsAll method

bool containsAll(
  1. Iterable<T> collection
)

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

Implementation

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