filter method
Filters all candidates, retuning only a subset that matches
Implementation
@override
Iterable<WidgetTreeNode> filter(Iterable<WidgetTreeNode> candidates) {
return candidates.where((node) {
return predicate(node.element);
});
}