CrudTodo Model

Learn how to write, create, read, update, and delete Firestore queries.

We'll cover the following

In this lesson, we’ll write our CrudTodo class. It is also mixin with the ChangeNotifier class so that we have the notifyListeners method to notify the observers of the CrudTodo class. This class has only one state variable, which is _taskItemsMap. This is a map in which the key is the date and the value is a list of todo items.

Code

Let’s look at the code below:

Get hands-on with 1200+ tech skills courses.