SaveSyncStateCallback typedef
Callback for saving sync state after events are successfully applied.
This is called after remote events are applied locally. The implementation should save the sync state (last sync timestamp, last sequence, etc.) so that the next sync can fetch only new events.
Implementation
typedef SaveSyncStateCallback =
Future<void> Function(String repositoryName, List<JsonMap<dynamic>> events);