SyncStore class abstract

Abstract interface for persisting and managing sync tasks.

This abstraction allows for different storage implementations (Hive, SQLite, etc.) without coupling the manager to a specific solution.

Implementers

Constructors

SyncStore()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getPendingTasks(int limit) Future<List<SyncTask>>
Retrieves pending tasks that are ready to be synced.
markFailed(String taskId, String error) Future<void>
Marks a task as failed and increments its retry count.
markSynced(String taskId) Future<void>
Marks a task as successfully synced.
markSyncing(String taskId) Future<void>
Marks a task as currently being synced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveTask(SyncTask task) Future<void>
Saves or updates a sync task.
toString() String
A string representation of this object.
inherited
updateTask(SyncTask task) Future<void>
Updates an existing sync task.

Operators

operator ==(Object other) bool
The equality operator.
inherited