swap property

Map<V, K> swap

Returns a new map with the keys and values swapped.

Implementation

Map<V, K> get swap {
  return map((key, value) => MapEntry(value, key));
}