DataChangeEvent<T extends DatumEntityInterface> class
Event emitted whenever local or remote data changes.
- Inheritance
-
- Object
- DatumSyncEvent<
T> - DataChangeEvent
Constructors
- DataChangeEvent({required String userId, T? data, required ChangeType changeType, required DataSource source, DateTime? timestamp})
- Creates a data change event.
Properties
- changeType → ChangeType
-
Type of change that occurred.
final
- data → T?
-
The changed data. This can be null for delete events.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → DataSource
-
Source of the change.
final
- timestamp → DateTime
-
The time at which the event occurred.
finalinherited
- userId → String
-
The user ID associated with this event.
finalinherited
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