FirestoreRemoteRepository<T extends CloudSyncable> class abstract

Implemented types

Constructors

FirestoreRemoteRepository.new({required FirebaseFirestore firestore, required T fromJson(Map<String, dynamic>)})

Properties

collectionName Future<String>
no setter
firestore → FirebaseFirestore
final
fromJson → T Function(Map<String, dynamic>)
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchItemsByServerWrittenTimeRange({required DateTime to, DateTime? from}) Future<List<T>>
Fetch items from the remote server within the specified server-written timestamp range.
override
getLatestServerSyncTime() Future<DateTime?>
Get the latest server sync timestamp from the remote data source.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pushUnsyncedItems(List<T> items) Future<void>
Synchronize the given items with the remote server.
override
toString() String
A string representation of this object.
inherited
watchingNewRecordsUpdates() Future<Stream<bool>>
Stream that emits true when there are new or updated records in the remote repository
override

Operators

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