query2<A, B> method
Creates a two-component query over component types A and B.
Implementation
Query2<A, B> query2<A, B>({
List<Type> withTypes = const <Type>[],
List<Type> withoutTypes = const <Type>[],
}) {
return Query2<A, B>(
this,
stores.object<A>(),
stores.object<B>(),
withTypes.map(stores.require).toList(growable: false),
withoutTypes.map(stores.require).toList(growable: false),
);
}