filterValues<K, V> method
Filter where the value is in the given values
.
Returns a new map with filtered entries.
Implementation
Map<K, V> filterValues<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;
}