mapValue<A> method

Map<K, A> mapValue<A>(
  1. A update(
    1. V value
    )
)

Convert each value of the Map using the update function and returns a new Map.

Implementation

Map<K, A> mapValue<A>(A Function(V value) update) =>
    {for (var MapEntry(:key, :value) in entries) key: update(value)};