key property - MapEntry class - dart:core library (original) (raw)

description

Kkey

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;