firstOrNull property

MapEntry<K, V>? get firstOrNull

Returns the first entry if it exists otherwise null.

Iterable.first

Implementation

MapEntry<K, V>? get firstOrNull => entries.firstOrNull;