DatumSyncStatistics class

Aggregated statistics about multiple sync cycles.

Constructors

DatumSyncStatistics({int totalSyncs = 0, int successfulSyncs = 0, int failedSyncs = 0, int conflictsDetected = 0, int conflictsAutoResolved = 0, int conflictsUserResolved = 0, Duration averageDuration = Duration.zero, Duration totalSyncDuration = Duration.zero})
Creates an instance of sync statistics.
const

Properties

averageDuration → Duration
The running average duration of a sync operation.
final
conflictsAutoResolved → int
The number of conflicts that were resolved automatically.
final
conflictsDetected → int
The total number of conflicts detected.
final
conflictsUserResolved → int
The number of conflicts that required user resolution.
final
failedSyncs → int
The number of syncs that failed.
final
hashCode → int
The hash code for this object.
no setterinherited
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
successfulSyncs → int
The number of syncs that completed successfully.
final
totalSyncDuration → Duration
The total combined duration of all syncs.
final
totalSyncs → int
The total number of sync operations that have been initiated.
final

Methods

copyWith({int? totalSyncs, int? successfulSyncs, int? failedSyncs, int? conflictsDetected, int? conflictsAutoResolved, int? conflictsUserResolved, Duration? averageDuration, Duration? totalSyncDuration}) → DatumSyncStatistics
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.
inherited

Operators

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