GlobalDatumObserver class abstract
A specialized observer that can handle any entity type.
This is used for global observers registered on the main Datum instance.
- Inheritance
-
- Object
- DatumObserver<
DatumEntityBase> - GlobalDatumObserver
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(
DatumEntityBase local, DatumEntityBase remote, DatumConflictContext context) → void -
Called when a conflict is detected between local and remote data.
override
-
onConflictResolved(
DatumConflictResolution< DatumEntityBase> resolution) → void -
Called after a conflict has been resolved.
override
-
onCreateEnd(
DatumEntityBase item) → void -
Called at the end of a successful
createoperation.override -
onCreateStart(
DatumEntityBase item) → void -
Called at the beginning of a
createoperation.override -
onDeleteEnd(
String id, {required bool success}) → void -
Called at the end of a
deleteoperation.inherited -
onDeleteStart(
String id) → void -
Called at the beginning of a
deleteoperation.inherited -
onSyncEnd(
DatumSyncResult< DatumEntityBase> result) → void -
Called when a synchronization cycle has finished.
inherited
-
onSyncStart(
) → void -
Called when a synchronization cycle is about to start.
inherited
-
onUpdateEnd(
DatumEntityBase item) → void -
Called at the end of a successful
updateoperation.override -
onUpdateStart(
DatumEntityBase item) → void -
Called at the beginning of an
updateoperation.override -
onUserSwitchEnd(
DatumUserSwitchResult result) → void -
Called when a user switch operation has finished.
inherited
-
onUserSwitchStart(
String? oldUserId, String newUserId, UserSwitchStrategy strategy) → void -
Called when a user switch operation is about to start.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited