containsAll method
Returns true
if all elements of other
are contained in the receiver.
Implementation
bool containsAll(Iterable<Object?> other) {
if (other.isEmpty) {
return true;
} else if (other.length == 1) {
return contains(other.first);
} else if (other is Multiset) {
for (final element in other.distinct) {
if (this[element] < other[element]) {
return false;
}
}
return true;
} else {
return containsAll(Multiset.of(other));
}
}