QuerySnapshot<T extends Model> class
A snapshot consisting of the items in the local store when the snapshot was generated and a boolean value to indicate if this model has finished syncing data over the network.
Constructors
-
QuerySnapshot({required List<
T> items, required bool isSynced, QueryPredicate<Model> ? where, List<QuerySortBy> ? sortBy}) -
A snapshot consisting of the
items
in the local store when the snapshot was generated and a boolean value to indicate if this model has finished syncing data over the network.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSynced → bool
-
Indicates whether all sync queries for this model are complete
final
-
items
→ List<
T> -
A list of models from the local store at the time that the snapshot was generated
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sortBy
→ List<
QuerySortBy> ? -
A list of
QuerySortBy
conditions, used to specify the order of resultsfinal -
where
→ QueryPredicate<
Model> ? -
A condition, or group of conditions, used to query data
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withSubscriptionEvent(
{required SubscriptionEvent< T> event}) → QuerySnapshot<T> -
Returns a new QuerySnapshot with the
event
applied -
withSyncStatus(
bool status) → QuerySnapshot< T> -
Returns a new QuerySnapshot with the
status
applied
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited