countAllComps<C extends Comp<T>> method

int countAllComps<C extends Comp<T>>()
inherited

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;
}