where method
Returns a new map with all entries that satisfy the predicate test
.
Implementation
Map<K, V> where(bool Function(K key, V value) predicate) {
return Map.fromEntries(entries.where((entry) => predicate(entry.key, entry.value)));
}
Returns a new map with all entries that satisfy the predicate test
.
Map<K, V> where(bool Function(K key, V value) predicate) {
return Map.fromEntries(entries.where((entry) => predicate(entry.key, entry.value)));
}