CrudTodo Model
Learn how to write, create, read, update, and delete Firestore queries.
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:
Access this course and 1400+ top-rated courses and projects.