any method
Returns true if there is at least one entry that matches the given predicate
.
predicate
must not be null.
Implementation
bool any(bool Function(K key, V value) predicate) {
if (isEmpty) {
return false;
}
for (final MapEntry<K, V> entry in entries) {
if (predicate(entry.key, entry.value)) {
return true;
}
}
return false;
}