singleWhereOrNull method

MapEntry<K, V>? singleWhereOrNull(
  1. bool test(
    1. K key,
    2. V value
    )
)

Returns the single element that satisfies test. Iterable.singleWhere

Implementation

MapEntry<K, V>? singleWhereOrNull(bool Function(K key, V value) test) {
  return entries.singleWhereOrNull((entry) => test(entry.key, entry.value));
}