findAllCompsWith<C extends Comp<T> > method
Recursively finds every component that itself contains a nested
component of type C (i.e. returns the containing components, not
the matches themselves).
Implementation
Iterable<Comp<T>> findAllCompsWith<C extends Comp<T>>() {
List<Comp<T>> found = [];
for (final comp in _components) {
if (comp.containsComp<C>()) {
found.add(comp);
}
found.addAll(comp.findAllCompsWith<C>());
}
return found;
}