QueryBuilder<T> class
Null safety
Query builder allows creating reusable queries.
Constructors
-
QueryBuilder(Store store, EntityDefinition<
T> entity, Condition<T> ? qc) - Start creating a query.
Properties
- hashCode → int
-
The hash code for this object.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
backlink<
SourceEntityT> (QueryRelationToOne< SourceEntityT, T> rel, [Condition<SourceEntityT> ? qc]) → _QueryBuilder<SourceEntityT> -
inherited
-
backlinkMany<
SourceEntityT> (QueryRelationToMany< SourceEntityT, T> rel, [Condition<SourceEntityT> ? qc]) → _QueryBuilder<SourceEntityT> -
inherited
-
build(
) → Query< T> - Finish building a Query. Call Query.close() after you're done with it to free resources.
-
link<
TargetEntityT> (QueryRelationToOne< T, TargetEntityT> rel, [Condition<TargetEntityT> ? qc]) → _QueryBuilder<TargetEntityT> -
inherited
-
linkMany<
TargetEntityT> (QueryRelationToMany< T, TargetEntityT> rel, [Condition<TargetEntityT> ? qc]) → _QueryBuilder<TargetEntityT> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
order<
_> (QueryProperty< T, _> p, {int flags = 0}) → void - Configure how the results are ordered. Pass a combination of Order flags.
-
toString(
) → String -
A string representation of this object.
inherited
-
watch(
{bool triggerImmediately = false}) → Stream< Query< T> > -
Finish building a
Query
creating a Stream that issues events whenever the queried entity changes. The streamed query is persisted between stream events and can be used even after the subscription is cancelled.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited