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