inverted method

Map<V, K> inverted()

Returns a new Map, where the keys are the values of this Map and the values are the keys of this Map.

Implementation

Map<V, K> inverted() => map((key, value) => MapEntry(value, key));