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));
}
Returns a new map with the keys and values swapped.
Map<V, K> get swap {
return map((key, value) => MapEntry(value, key));
}