mapValues<R> method

Map<K, R> mapValues<R>(
  1. R transform(
    1. MapEntry<K, V> entry
    )
)

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