containsAll method Null safety

bool containsAll(
  1. Iterable<Object?> other
)
override

Whether this set contains all the elements of other.

Implementation

bool containsAll(Iterable<Object?> other) {
  for (var o in other) {
    if (!contains(o)) return false;
  }
  return true;
}