get<C extends Comp<T>> method

C? get<C extends Comp<T>>()
inherited

Returns the first top-level component matching type C, or null.

Implementation

C? get<C extends Comp<T>>() => _components.whereType<C>().firstOrNull;