DatumSyncResult<T extends DatumEntityBase>.cancelled constructor

const DatumSyncResult<T extends DatumEntityBase>.cancelled(
  1. String userId,
  2. int syncedCount
)

Creates a result for a sync cycle that was cancelled.

Implementation

const DatumSyncResult.cancelled(this.userId, this.syncedCount)
    : duration = Duration.zero,
      failedCount = 0,
      conflictsResolved = 0,
      pendingOperations = const [],
      totalBytesPushed = 0,
      totalBytesPulled = 0,
      bytesPushedInCycle = 0,
      bytesPulledInCycle = 0,
      wasSkipped = false,
      wasCancelled = true,
      error = null,
      skipReason = null;