mapValues<R> method
Returns a new Map with entries having the keys of this Map and the
values obtained by applying the transform
function to each entry in this
Map.
Implementation
Map<K, R> mapValues<R>(R Function(MapEntry<K, V> entry) transform) =>
Map.fromIterables(keys, entries.map(transform));