DatumEntitySyncDetails class

Describes the synchronization state for a single entity type.

Annotations
  • @immutable

Constructors

DatumEntitySyncDetails({required int count, String? hash, DateTime? lastModified, int pendingChanges = 0})
Creates details for an entity's sync state.
const
DatumEntitySyncDetails.fromJson(Map<String, dynamic> json)
Creates DatumEntitySyncDetails from a map (JSON).
factory

Properties

count → int
The total number of items for this entity.
final
hash → String?
An optional hash of this entity's data for integrity checking.
final
hashCode → int
The hash code for this object.
no setteroverride
lastModified → DateTime?
Last modification time for this entity type.
final
pendingChanges → int
Number of pending changes waiting to be synced.
final
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
toMap() → Map<String, dynamic>
Converts to a map for JSON serialization.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override