sync method

Future<void> sync()

Triggers a manual synchronization.

This method will sync all registered entities with the server.

Implementation

Future<void> sync() async {
  _ensureInitialized();

  try {
    await _syncEngine.syncAll();
  } catch (e, stackTrace) {
    _logger.error('Failed to sync', e, stackTrace);
    rethrow;
  }
}