minByOrNull<R extends Comparable> method

MapEntry<K, V>? minByOrNull<R extends Comparable>(
  1. R selector(
    1. MapEntry<K, V> entry
    )
)

Returns the first entry yielding the smallest value of the given function or null if there are no entries.

Implementation

MapEntry<K, V>? minByOrNull<R extends Comparable>(
  R Function(MapEntry<K, V> entry) selector,
) =>
    entries.minByOrNull(selector);