FirestoreDocumentChange<DocumentSnapshot extends FirestoreDocumentSnapshot<Object?> > class
A DocumentChange
represents a change to the documents matching a query.
It contains the document affected and the type of change that occurred (added, modified, or removed).
- Annotations
-
- @sealed
Constructors
- FirestoreDocumentChange({required DocumentChangeType type, required int oldIndex, required int newIndex, required DocumentSnapshot doc})
-
A
DocumentChange
represents a change to the documents matching a query.
Properties
- doc → DocumentSnapshot
-
Returns the
DocumentSnapshot
for this instance.final - hashCode → int
-
The hash code for this object.
no setterinherited
- newIndex → int
-
The index of the changed document in the result set immediately after this
FirestoreDocumentChange (i.e. supposing that all prior FirestoreDocumentChange objects
and the current FirestoreDocumentChange object have been applied).
final
- oldIndex → int
-
The index of the changed document in the result set immediately prior to
this FirestoreDocumentChange (i.e. supposing that all prior FirestoreDocumentChange objects
have been applied).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → DocumentChangeType
-
The type of change that occurred (added, modified, or removed).
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited