mapValues<V2> method
Transforms the values in this map using the given function.
A new map is returned with the same keys but with values transformed by the transform function.
Implementation
Map<K, V2> mapValues<V2>(V2 Function(V) transform) =>
map((key, value) => MapEntry(key, transform(value)));