updatePendingCount method
Implementation
Future<void> updatePendingCount() async {
final pending = await _storage.getPendingMutations();
_cachedPendingCount = pending.length;
_updateSyncState(
_currentSyncState.copyWith(pendingCount: _cachedPendingCount),
);
}