lastOrNull method

T? lastOrNull([
  1. bool test(
    1. T
    )?
])

Implementation

T? lastOrNull([bool Function(T)? test]) => reversed.findOrNull(test ?? (_) => true);