lastWhereOrNull method

E? lastWhereOrNull(
  1. bool test(
    1. E
    )
)

Implementation

E? lastWhereOrNull(bool Function(E) test) {
  try {
    return lastWhere(test);
  } catch (e) {
    return null;
  }
}