countAllComps<C extends Comp<T> > method
Recursively counts every component of type C in this subtree.
Implementation
int countAllComps<C extends Comp<T>>() {
int count = getAll<C>().length;
for (final comp in _components) {
count += comp.countAllComps<C>();
}
return count;
}