removeIterable method

ImmortalMap<K, V> removeIterable(
  1. Iterable<Object?> keysToRemove
)

Returns a copy of this map where all keys and their associated values contained in the iterable keysToRemove are removed from.

See removeAll. It iterates over keysToRemove, which must therefore not change during the iteration.

Implementation

ImmortalMap<K, V> removeIterable(Iterable<Object?> keysToRemove) =>
    removeWhereKey(keysToRemove.contains);