dart map get key and value code example
Example 1: flutter get key from map
String key = values.keys.elementAt(index);
Example 2: Map in dart
void main() {
var details = new Map();
details['Usrname'] = 'admin';
details['Password'] = 'admin@123';
print(details);
}
// Output
// {Usrname: admin, Password: admin@123}
Example 3: get value from map with key flutter
String value = myMap["mykey"];