key property Null safety
final
The key of the entry.
final map = {'theKey': 'theValue'};
var entry = map.entries.first;
print(entry.key); // theKey
Implementation
final K key;
The key of the entry.
final map = {'theKey': 'theValue'};
var entry = map.entries.first;
print(entry.key); // theKey
final K key;