how to get the key of an map in dart code example Example: flutter get key from map String key = values.keys.elementAt(index);