map((k, v) => MapEntry(v, k)); Tip of the hat to Joe Conway on gitter. Thanks. In this code, you get MapEntry, which contains key and value, instead only key in a separate variable.
map((k, v) => MapEntry(v, k)); Tip of the hat to Joe Conway on gitter. Thanks. In this code, you get MapEntry, which contains key and value, instead only key in a separate variable.