lastOrNull property

MapEntry<K, V>? get lastOrNull

Returns the last entry if it exists otherwise null.

Iterable.last

Implementation

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