lastOrDefault method
get the last item that match expression or null if not any
Implementation
T? lastOrDefault([bool Function(T element)? test]) {
var filtered = test == null ? this : where(test);
if (filtered.isNotEmpty) {
return filtered.last;
} else {
return null;
}
}