Map entries can only be used in a map literal. code example
Example 1: flutter get key from map
String key = values.keys.elementAt(index);
Example 2: get value from map with key flutter
String value = myMap["mykey"];
String key = values.keys.elementAt(index);
String value = myMap["mykey"];