Migrate sync queue persistence to store adapters

This commit is contained in:
Rijad Zuzo
2026-02-15 19:38:46 +01:00
parent 1502360051
commit add0105e6b
13 changed files with 293 additions and 18 deletions
@@ -0,0 +1,18 @@
/// Raw persisted payload for sync queue state.
class SyncStateRecord {
const SyncStateRecord({required this.rawState});
final String rawState;
}
/// Persistence boundary for sync queue metadata and pending changes.
abstract interface class SyncStateStore {
/// Reads stored sync state payload.
Future<SyncStateRecord?> read();
/// Writes sync state payload.
Future<void> write({required String rawState});
/// Clears stored sync state payload.
Future<void> clear();
}