query1<A> method

Query1<A> query1<A>({
  1. List<Type> withTypes = const <Type>[],
  2. List<Type> withoutTypes = const <Type>[],
})

Creates a single-component query over component type A.

Implementation

Query1<A> query1<A>({
  List<Type> withTypes = const <Type>[],
  List<Type> withoutTypes = const <Type>[],
}) {
  return Query1<A>(
    this,
    stores.object<A>(),
    withTypes.map(stores.require).toList(growable: false),
    withoutTypes.map(stores.require).toList(growable: false),
  );
}