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