markAsSynced method
Future<void>
markAsSynced(
- List<T> models
)
override
Implementation
@override
Future<void> markAsSynced(List<T> models) async {
// In a real Drift implementation, this would be:
// await _database.updateSyncStatus(models, SyncStatus.synced);
print('DriftAdapter: Marking ${models.length} models as synced in $tableName');
for (final model in models) {
final key = _generateKey(model);
print('DriftAdapter: Marking model $key as synced');
}
// Simulate database operation
await Future.delayed(Duration(milliseconds: 10));
}