markAllUnsynced method
Marks all CloudSyncable entities of type T
as unsynced
in the local repository.
Implementation
@override
Future<void> markAllUnsynced() async {
try {
final db = database;
await db.update(
tableName,
{'server_time_synced_at': null},
where: 'server_time_synced_at IS NOT NULL',
);
} on DatabaseException catch (e) {
_logger.e('Error marking all items as unsynced: $e');
rethrow;
}
}