updateAll abstract method Null safety
- V update(
- K key,
- V value
Updates all values.
Iterates over all entries in the map and updates them with the result
of invoking update
.
final terrestrial = <int, String>{1: 'Mercury', 2: 'Venus', 3: 'Earth'};
terrestrial.updateAll((key, value) => value.toUpperCase());
print(terrestrial); // {1: MERCURY, 2: VENUS, 3: EARTH}
Implementation
void updateAll(V update(K key, V value));