replaceAll method

void replaceAll(
  1. K key,
  2. Iterable<V> values
)

Replaces the key with each of the values.

Implementation

void replaceAll(K key, Iterable<V> values) {
  final list = List.of(values);
  lookupValues(key)
    ..polymorphicClear()
    ..polymorphicAddAll(list);
}