To declare a map using map literals, you need to enclose the key-value pairs within a pair of curly brackets “{ }” .
Read moreHow do I install Dart Maps?
Add item to a Map in Dart/Flutter There are 2 way to add an item (key-value pair) to a Map: using square brackets [] calling putIfAbsent() method .16 Mar 2022
Read more