Added method to mark task as done in the bloc
This commit is contained in:
parent
b9f0831c27
commit
e0caaf85bd
1 changed files with 7 additions and 0 deletions
|
|
@ -19,6 +19,13 @@ class HomeBloc {
|
|||
_firestore.getUserTasks(user.email).pipe(_tasks);
|
||||
}
|
||||
|
||||
void markTaskAsDone(TaskModel task) async {
|
||||
_firestore.updateTask(
|
||||
task.id,
|
||||
done: true,
|
||||
);
|
||||
}
|
||||
|
||||
void dispose() {
|
||||
_tasks.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue