In many cases, when you need to persist structured data in your app, you will likely choose an SQL database, such as SQFLite, which we've used in Chapter 6, Store That Data - Using Sq(F)Lite To Store Data in a Local Database. But, there are cases where your data is not structured, or it's so simple that you don't need an SQL database. For those cases, there is a very efficient solution for Flutter—the simple embedded application store database.
Sembast is a document-based database that resides in a single file. It is loaded in memory when you open it from the app, and it's very efficient, as the file is automatically compacted when needed. Data is stored in JSON format, with key–value pairs. You can even encrypt data if your app requires it.
The library is written in Dart and the only requirement that you need in order...