last property
Returns a variant of this finder that only matches the last item found by this finder.
Implementation
@override
PatrolFinder get last {
return _select(
description: 'last',
selector: (candidates) {
if (candidates.isEmpty) {
return const Iterable<Element>.empty();
}
return [candidates.last] as Iterable<Element>;
},
);
}