findLast function

  1. @Deprecated("Use inbuilt List.lastWhere() instead")
dynamic findLast(
  1. List list,
  2. dynamic iteratee
)

Implementation

@Deprecated("Use inbuilt List.lastWhere() instead")
dynamic findLast(List list, dynamic iteratee) {
  try {
    return list.lastWhere((element) => evaluatePredicate(iteratee, element));
  } catch (e) {
    return null;
  }
}