maxOfWithOrNull<R> method
Returns the largest value according to the provided comparator
among all
values produced by selector
function applied to each entry in the map or
null
if there are no entries.
Implementation
R? maxOfWithOrNull<R>(
Comparator<R> comparator,
R Function(MapEntry<K, V> entry) selector,
) =>
entries.maxOfWithOrNull(comparator, selector);