minWithOrNull method

MapEntry<K, V>? minWithOrNull(
  1. Comparator<MapEntry<K, V>> comparator
)

Returns the first entry having the smallest value according to the provided comparator or null if there are no entries.

Implementation

MapEntry<K, V>? minWithOrNull(Comparator<MapEntry<K, V>> comparator) =>
    entries.minWithOrNull(comparator);