model_interfaces 0.3.0 icon indicating copy to clipboard operation
model_interfaces: ^0.3.0 copied to clipboard

Common interfaces for your models that have IDs, titles, etc.

Pub Package GitHub CodeFactor Support Chat

This package provides common interfaces for your models: WithId<I>, WithTitle, WithChildren<C>, etc. and their combinations like WithIdTitle<I>.

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 name instead of title.

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.

8
likes
140
pub points
47%
popularity

Publisher

verified publisher iconainkin.com

Common interfaces for your models that have IDs, titles, etc.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT-0 (LICENSE)

Dependencies

meta

More

Packages that depend on model_interfaces