SyncService<T extends CloudSyncable> constructor

SyncService<T extends CloudSyncable>({
  1. required LocalRepository<T> localRepository,
  2. required RemoteRepository<T> remoteRepository,
  3. CloudStorageService? cloudStorageService,
})

Creates a SyncService instance.

localRepository and remoteRepository are required.

Implementation

SyncService({
  required this.localRepository,
  required this.remoteRepository,
  this.cloudStorageService,
});