key property Null safety

K key
final

The key of the entry.

final map = {'theKey': 'theValue'};
var entry = map.entries.first;
print(entry.key); // theKey

Implementation

final K key;