FirestoreRemoteRepository<T extends CloudSyncable> class
abstract
- Implemented types
Constructors
-
FirestoreRemoteRepository.new({required FirebaseFirestore firestore, required T fromJson(Map<
String, dynamic> )})
Properties
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