query2<A, B> method

Query2<A, B> query2<A, B>({
  1. List<Type> withTypes = const <Type>[],
  2. List<Type> withoutTypes = const <Type>[],
})

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),
  );
}