recordSyncAttempt method
void
recordSyncAttempt()
Record sync attempt
Implementation
void recordSyncAttempt() {
_syncAttempts++;
_lastSyncStartTime = DateTime.now();
_emitEvent(SyncMetricEvent(
type: 'sync_attempt',
data: {'total_attempts': _syncAttempts},
));
}