lastOrNull<T> static method

T? lastOrNull<T>(
  1. Iterable<T?> names, {
  2. bool filter(
    1. T? input
    )?,
})

Implementation

static T? lastOrNull<T>(Iterable<T?> names, {bool filter(T? input)?}) {
  return names.lastWhere(filter ?? matchAll(), orElse: returnNull());
}