mapValues<V2> method

Map<K, V2> mapValues<V2>(
  1. V2 transform(
    1. V
    )
)

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)));