✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
1: import 'package:sqflite/sqflite.dart';
2:
3: class TaskRepository {
4: final Database _db;
5: TaskRepository(this._db);
6:
7: Future
updateStatus(int taskId, bool isDone) async {8: await _db.update(
9: 'tasks',
10: {'isCompleted': isDone ? 1 : 0},
11: where: 'id = ?',
12: whereArgs: taskId,
13: );
14: }
15: }
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!