firstKey method
The first key in the map.
Returns null
if the map is empty.
Implementation
K? firstKey() {
final root = _root;
if (root == null) return null;
return (_root = _splayMin(root)).key;
}
The first key in the map.
Returns null
if the map is empty.
K? firstKey() {
final root = _root;
if (root == null) return null;
return (_root = _splayMin(root)).key;
}