findAllComps<C extends Comp<T>> method

Iterable<C> findAllComps<C extends Comp<T>>()
inherited

Recursively finds every component of type C in this subtree.

Implementation

Iterable<C> findAllComps<C extends Comp<T>>() {
  List<C> found = [];

  found.addAll(getAll<C>());

  for (final comp in _components) {
    found.addAll(comp.findAllComps<C>());
  }

  return found;
}