maxOfWithOrNull<R> method

R? maxOfWithOrNull<R>(
  1. Comparator<R> comparator,
  2. R selector(
    1. MapEntry<K, V> entry
    )
)

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);