rejectValues<K, V> method

Map<K, V> rejectValues<K, V>(
  1. Iterable<V> values
)

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;
}