mapValues<V2> method

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

Returns a new map with values transformed by f.

Implementation

Map<K, V2> mapValues<V2>(V2 Function(V value) f) =>
    {for (final e in entries) e.key: f(e.value)};