RealtimeEvent class

Realtime change event

Constructors

RealtimeEvent({required RealtimeEventType type, required String collection, String? documentId, Map<String, dynamic>? document, Map<String, dynamic>? updatedFields, List<String>? removedFields, DateTime? timestamp})
Creates a new RealtimeEvent instance
const
RealtimeEvent.fromJson(Map<String, dynamic> json)
Creates from JSON
factory

Properties

collection String
Collection name
final
document Map<String, dynamic>?
Full document (for insert/update/replace)
final
documentId String?
Document ID
final
hashCode int
The hash code for this object.
no setterinherited
removedFields List<String>?
Removed fields (for update)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime?
Event timestamp
final
type RealtimeEventType
Event type
final
updatedFields Map<String, dynamic>?
Updated fields (for update)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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