hasAny<A extends Comp<T>, B extends Comp<T>> method

bool hasAny<A extends Comp<T>, B extends Comp<T>>()
inherited

Whether a top-level component of type A OR type B exists.

Implementation

bool hasAny<
  A extends Comp<T>,
  B extends Comp<T>
>() => has<A>() || has<B>();