firstWhereOrNull method

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

Returns the first entry that satisfies test otherwise null. Iterable.firstWhere

Implementation

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