findLast method

T? findLast(
  1. bool predicate(
    1. T
    )
)

Returns the last element matching the given predicate, or null if no such element was found.

Implementation

T? findLast(bool Function(T) predicate) {
  return lastOrNull(predicate);
}