In python I'd write:
{a:0 for a in range(5)}
to get
{0: 0, 1: 0, 2: 0, 3: 0, 4: 0}
How can I achieve the same in Dart?
So far I have this:
List<Map<String, double>>.generate(5, (i) => { i: 0 });
but this generates list of maps [{0: 0}, {1: 0}, {2: 0}, {3: 0}, {4: 0}],
while I want a simple map