LastWhereOrDefaultExtension<T> extension

on

Methods

lastWhereOrDefault(bool condition(T element), {T? defaultValue}) → T?
Returns the last element in the iterable matching a specified condition, or a default value if none is found.