any method
Returns true if the map contains any entry matching the predicate.
Example:
{'a': 1, 'b': 2}.any((k, v) => v > 1); // true
Implementation
bool any(bool Function(K, V) test) {
for (final entry in entries) {
if (test(entry.key, entry.value)) return true;
}
return false;
}