DatumChangeDetail<T extends DatumEntity> class

Represents a change that occurred in a data source. This is used by adapters to notify the engine about external changes.

Annotations
  • @immutable

Constructors

DatumChangeDetail({required DatumOperationType type, required String entityId, required String userId, required DateTime timestamp, T? data, String? sourceId})
Creates a change detail object.
const

Properties

data → T?
The new entity data (null for delete operations).
final
entityId String
The ID of the entity that changed.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceId String?
An optional identifier for the source of the change (e.g., device ID, session ID). This can be used by the engine to avoid processing changes that originated from the same instance.
final
timestamp DateTime
The timestamp of when the change occurred.
final
type DatumOperationType
The type of change operation that occurred.
final
userId String
The ID of the user who owns the entity.
final

Methods

copyWith({DatumOperationType? type, String? entityId, String? userId, T? data, DateTime? timestamp, String? sourceId}) DatumChangeDetail<T>
Creates a copy of this object with modified fields.
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.
override