SyncService<T extends CloudSyncable> class abstract

An abstract class for synchronizing CloudSyncable entities between local and remote repositories.

Constructors

SyncService.new({required LocalRepository<T> localRepository, required RemoteRepository<T> remoteRepository, CloudStorageService? cloudStorageService})
Creates a SyncService instance.

Properties

cloudStorageService CloudStorageService?
final
hashCode int
The hash code for this object.
no setterinherited
localRepository LocalRepository<T>
The local repository for storing and retrieving entities.
final
remoteRepository RemoteRepository<T>
The remote repository for synchronizing entities with the cloud.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getFileRemotePath(T item) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sync() Future<void>
Synchronizes the local and remote data.
toString() String
A string representation of this object.
inherited

Operators

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