all method
Returns true if all entries match the given predicate
.
predicate
must not be null.
Implementation
bool all(bool Function(K key, V value) predicate) {
if (isEmpty()) {
return true;
}
for (final KtMapEntry<K, V> entry in iter) {
if (!predicate(entry.key, entry.value)) {
return false;
}
}
return true;
}