DocumentChange class Null safety

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

See: firebase.google.com/docs/reference/js/firebase.firestore.DocumentChange.

Properties

doc DocumentSnapshot
The document affected by this change.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
jsObject → DocumentChangeJsImpl
JS object.
final, inherited
newIndex num
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.
read-only
oldIndex num
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.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
Type of the change: added, removed or modified.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

getInstance(DocumentChangeJsImpl jsObject) DocumentChange
Creates a new DocumentChange from a jsObject.