findCompInChildren<C extends Comp<T> > method
C?
findCompInChildren<C extends Comp<T> >()
inherited
Finds the first direct child component of type C (non-recursive).
Implementation
C? findCompInChildren<C extends Comp<T>>() {
for (final comp in _components) {
final found = comp.get<C>();
if (found != null) return found;
}
return null;
}