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

Constructors

GlobalDatumObserver()

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 create operation.
override
onCreateStart(DatumEntityBase item) → void
Called at the beginning of a create operation.
override
onDeleteEnd(String id, {required bool success}) → void
Called at the end of a delete operation.
inherited
onDeleteStart(String id) → void
Called at the beginning of a delete operation.
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 update operation.
override
onUpdateStart(DatumEntityBase item) → void
Called at the beginning of an update operation.
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