QuerySnapshot<T extends Object?> class

Represents a snapshot of the results of a query.

Parameters:

  • res: The list of result documents.
  • query: The query that produced this snapshot.
  • _metadata: Metadata about the snapshot.

Returns: An instance of QuerySnapshot.

Example:

var snapshot = QuerySnapshot(results, query, metadata);

Constructors

QuerySnapshot(List res, dynamic query, SnapshotMetadata _metadata)
QuerySnapshot.fromJson(dynamic jsonString, dynamic db)
Creates a QuerySnapshot from JSON data.
factory

Properties

docChanges → List<DocumentChange>
Gets the list of document changes since the last snapshot.
no setter
docs → List<QueryDocumentSnapshot<T>>
Gets the list of document snapshots.
no setter
hashCode → int
The hash code for this object.
no setterinherited
metadata → SnapshotMetadata
Gets the metadata for this snapshot.
no setter
query ↔ dynamic
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
Gets the number of documents in the snapshot.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
Converts the QuerySnapshot to JSON.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited