firstOrNull property

MapEntry<K, V>? firstOrNull

Returns the first entry if it exists otherwise null.

Iterable.first

Implementation

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