has<C extends Comp<T>> method

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

Whether a top-level component of type C exists.

Implementation

bool has<C extends Comp<T>>() => _components.any((s) => s is C);