maxOfWith<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.
Implementation
R maxOfWith<R>(
Comparator<R> comparator,
R Function(MapEntry<K, V> entry) selector,
) =>
entries.maxOfWith(comparator, selector);