excludeKeys method
Returns a new map containing entries whose keys are not in the keys list.
Example:
final map = {'a': 1, 'b': 2, 'c': 3};
final filtered = map.excludeKeys(['b']);
print(filtered); // Output: {'a': 1, 'c': 3}
Implementation
Map<K, V> excludeKeys(List<K> keys) =>
Map<K, V>.fromEntries(entries.where((e) => !keys.contains(e.key)));