lastOrNull property

MapEntry<K, V>? lastOrNull

Returns the last entry if it exists otherwise null.

Iterable.last

Implementation

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