DatumObserver<T extends DatumEntityBase> class
abstract
An observer class to monitor operations within DatumManager.
Implement this class and register it via Datum.addObserver() (for global
observation) or during Datum.register() (for entity-specific observation)
to receive notifications about key operations.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onConflictDetected(
T local, T remote, DatumConflictContext context) → void - Called when a conflict is detected between local and remote data.
-
onConflictResolved(
DatumConflictResolution< T> resolution) → void - Called after a conflict has been resolved.
-
onCreateEnd(
T item) → void -
Called at the end of a successful
createoperation. -
onCreateStart(
T item) → void -
Called at the beginning of a
createoperation. -
onDeleteEnd(
String id, {required bool success}) → void -
Called at the end of a
deleteoperation. -
onDeleteStart(
String id) → void -
Called at the beginning of a
deleteoperation. -
onSyncEnd(
DatumSyncResult< DatumEntityBase> result) → void - Called when a synchronization cycle has finished.
-
onSyncStart(
) → void - Called when a synchronization cycle is about to start.
-
onUpdateEnd(
T item) → void -
Called at the end of a successful
updateoperation. -
onUpdateStart(
T item) → void -
Called at the beginning of an
updateoperation. -
onUserSwitchEnd(
DatumUserSwitchResult result) → void - Called when a user switch operation has finished.
-
onUserSwitchStart(
String? oldUserId, String newUserId, UserSwitchStrategy strategy) → void - Called when a user switch operation is about to start.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited