DocumentChange extension type

A DocumentChange represents a change to the documents matching a query. It contains the document affected and the type of change that occurred.

on
Implemented types
Available extensions

Properties

doc QueryDocumentSnapshot
The document affected by this change.
no setter
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 DocumentChange (i.e. supposing that all prior DocumentChange objects and the current DocumentChange object have been applied). Is -1 for 'removed' events.
no setter
oldIndex int
The index of the changed document in the result set immediately prior to this DocumentChange (i.e. supposing that all prior DocumentChange objects have been applied). Is -1 for 'added' events.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of change ('added', 'modified', or 'removed').
no setter

Methods

isEqual(DocumentChange other) bool
Returns true if the data in this DocumentChange is equal to the provided one.
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