diffKeys<K, V> method

Map<T, T> diffKeys<K, V>(
  1. Map<K, V> map
)

Returns all entries of this map according to keys.

which is not in second map.

Example:

map.diffKeys(map2)

Implementation

Map<T, T> diffKeys<K, V>(Map<K, V> map) {
  removeWhere((T key, T value) => map.containsKey(key));
  return this;
}