containsComp<C extends Comp<T>> method

bool containsComp<C extends Comp<T>>()
inherited

Whether a component of type C exists anywhere in this subtree.

Implementation

bool containsComp<C extends Comp<T>>() => findComp<C>() != null;