model_interfaces 0.3.0 model_interfaces: ^0.3.0 copied to clipboard
Common interfaces for your models that have IDs, titles, etc.
This package provides common interfaces for your models:
WithChildren<C>, etc. and their combinations like
You can make some models in your package implement these interfaces. It allows you to make abstract widgets, controllers and any other logic that can show and work on any of these models.
The benefits are:
- Less code duplication for lists, dropdowns, chips, etc., because you no longer need a widget per class.
- Naming control. If you implement these, no class will stray from your rules,
e.g. by using
Many programmers use their own parent classes like these per project. This package allows you to:
- Reduce the work to start a project.
- Copy models between your projects as they are sure to follow the same interfaces.
See the full list of interfaces here
If you need an extra combination, you can mix the interfaces yourself in your project. Or consider making a PR.
Tech Support Chat #
Do you have any questions? Feel free to ask in the Telegram Support Chat.
Or even just join to say 'Hi!'. I like to hear from the users.