DatumSyncMetadata constructor
const
DatumSyncMetadata({
- required String userId,
- DateTime? lastSyncTime,
- DateTime? lastSuccessfulSyncTime,
- String? dataHash,
- String? deviceId,
- Map<
String, DateTime> ? devices, - Map<
String, dynamic> ? customMetadata, - Map<
String, DatumEntitySyncDetails> ? entityCounts, - SyncStatus syncStatus = SyncStatus.neverSynced,
- int syncVersion = 1,
- DateTime? serverTimestamp,
- int conflictCount = 0,
- String? errorMessage,
- int retryCount = 0,
- int? syncDuration,
Creates sync metadata.
Implementation
const DatumSyncMetadata({
required this.userId,
this.lastSyncTime,
this.lastSuccessfulSyncTime,
this.dataHash,
this.deviceId,
this.devices,
this.customMetadata,
this.entityCounts,
this.syncStatus = SyncStatus.neverSynced,
this.syncVersion = 1,
this.serverTimestamp,
this.conflictCount = 0,
this.errorMessage,
this.retryCount = 0,
this.syncDuration,
});