Added method to mark task as done in the bloc

This commit is contained in:
Mariano Uvalle 2019-03-13 21:04:07 -06:00
parent b9f0831c27
commit e0caaf85bd

View file

@ -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();
}