I looking for an on-the-shelf way to convert a List into a Map in Dart.
In python for example you can do:
l= [ (\'a\',(1,2)), (\'b\'
Another possibility is to use the Map.fromEntries() constructor:
final result = Map.fromEntries(l.map((value) => MapEntry(value[0], value[1])));