RealtimeDbChange class

Represents a database change event received from the realtime server.

Constructors

RealtimeDbChange({required RealtimeDbChangeType type, required String collection, required String docId, JsonMap? fullDocument})
RealtimeDbChange.fromJson(JsonMap json)
factory

Properties

collection → String
final
docId → String
final
fullDocument → JsonMap?
final
hashCode → int
The hash code for this object.
no setterinherited
isChange → bool
no setter
isDelete → bool
no setter
isInsert → bool
no setter
isUpdate → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → RealtimeDbChangeType
final

Methods

cast<T>(T fromJson(JsonMap documentId)) → T
Casts the full document payload to a typed object using fromJson.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
tryCast<T>(T fromJson(JsonMap doc)) → T?
Attempts to cast the full document payload to a typed object.

Operators

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