When starting a project , one doesn't necessarily know exactly how the database schema will look like. It will evolve during the project. To avoid having to create collections and their attributes by hand every time the model changes, I thought it would be useful to have them generated automatically based on meta-classes. This was made possible using build_runner with dart. Besides generating the database structure, the final classes will contain all the fields needed so the IDE will automatically trigger auto-completion. This avoid typos and speeds up coding. According to his needs, one can target the client sdk or server sdk or both. Classes will include helper functions to write and read data.
- Toggle Dark Theme