5 Answers. A map is not a list of pairs, you cannot access by index. You can access the keys, values and entries (pairs of key and value) as Iterable s .
Read moreHow do I create a Dart map?
To declare a map using map literals, you need to enclose the key-value pairs within a pair of curly brackets “{ }” .
Read more