Check out example codes for "flutter get key from map". It will help you in understanding the concepts better.

Code Example 1

String key = values.keys.elementAt(index);

Code Example 2

Map<String, int> map1 = {'zero': 0, 'one': 1, 'two': 2};
Map map2 = {'zero': 0, 'I': 'one', 10: 'X'};
var map3 = {'zero': 0, 'I': 'one', 10: 'X'};

Learn ReactJs, React Native from akashmittal.com