key property

K key
final

The key of the entry.

final map = {'theKey': 'theValue'}; // Map<String, String>
var entry = map.entries.first; // MapEntry<String, String>
print(entry.key); // 'theKey'

Implementation

final K key;