The main point of working on the project that you've built in this chapter isn't the app features themselves—you could create a todo app in much simpler ways. The focus here is the architecture that you've seen in action: using an asynchronous stream of data to update the state of an app is a pattern that can help you scale your projects to enterprise levels.
At the beginning of this chapter, you saw how to use the simple embedded application store database, or sembast, a document-based database that resides in a single file where data is stored in JSON format.
In sembast, a DatabaseFactory allows you to open a database where each database is a file and stores are locations in the database where you can save and retrieve data.
To insert a new item in a sembast database, you need to call the add() method over the store, passing the database and the...