rejectValues<K, V> method
Filter where the value is not in the given values
.
Returns a new map with filtered entries.
Implementation
Map<K, V> rejectValues<K, V>(Iterable<V> values) {
final map = <K, V>{};
for (final key in keys) {
if (!values.contains(this[key])) {
map[key as K] = this[key] as V;
}
}
return map;
}