OfflineFirstRepository<T extends CloudSyncable> class abstract

Constructors

OfflineFirstRepository.new({required LocalRepository<T> localRepository, required RemoteRepository<T> remoteRepository, required SyncService<T> syncService, required CloudStorageService cloudStorageService})

Properties

cloudStorageService CloudStorageService
final
hashCode int
The hash code for this object.
no setterinherited
localRepository LocalRepository<T>
final
remoteRepository RemoteRepository<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
syncService SyncService<T>
final

Methods

create(T entity) Future<T>
delete(String id) Future<void>
getAll({dynamic filter}) Future<List<T>>
getById(String id) Future<T?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sync() Future<void>
toString() String
A string representation of this object.
inherited
turnOffRealtimeSync() Future<void>
turnOnRealtimeSync() Future<StreamSubscription<bool>>
update(T entity) Future<T>
watchAll({dynamic filter}) Stream<List<T>>
watchOnSyncCompletion() StreamSubscription<bool>

Operators

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