Returns true if all entries satisfy the predicate.
predicate
bool all(bool Function(K key, V value) predicate) { for (var entry in entries) { if (!predicate(entry.key, entry.value)) return false; } return true; }