whereValue method
Returns a new Map containing all the entries of this
for which the
value satisfies test
.
Example:
var map = {'a': 1, 'b': 2, 'c': 3};
map.whereValue((value) => value > 1); // {'b': 2, 'c': 3}
Implementation
Map<K, V> whereValue(bool Function(V) test) =>
// Entries do not need to be cloned because they are const.
Map.fromEntries(this.entries.where((entry) => test(entry.value)));