omit method
Returns a new map containing all entries except those for the given keys.
Example:
print({'a': 1, 'b': 2}.omit(['a'])); // {'b': 2}
Implementation
Map<K, V> omit(Iterable<K> keys) {
return Map.fromEntries(entries.where((e) => !keys.contains(e.key)));
}