containsAll method

bool containsAll(
  1. Iterable<E> other
)

Returns true if this set contains all elements from other.

Example:

final set = {1, 2, 3, 4};
print(set.containsAll({2, 3})); // true
print(set.containsAll({5, 6})); // false

Implementation

bool containsAll(Iterable<E> other) {
  return other.every(contains);
}