get first key of map flutter code example Example: flutter get key from map String key = values.keys.elementAt(index);