containsAll method Null safety

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

Returns 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;
}