lastWhere method
Returns the last entry that satisfies the given predicate test
.
Iterable.lastWhere
Implementation
MapEntry<K, V> lastWhere(
bool Function(K key, V value) test, {
MapEntry<K, V> Function()? orElse,
}) {
return entries.lastWhere((entry) => test(entry.key, entry.value), orElse: orElse);
}