easy_mvvm library

An easy mvvm solution that includes ways to manage routes, views, viewmodels, and the mvvm architecture

Classes

BaseViewState<T extends ViewModel>
RouteErrorTemplate
Template used to display errors that occur during routing using the RouteService
RouteService
Service to navigate through routes within the app
View<T extends ViewModel>
Abstract class that simplifies the use of complicated mvvm architecture.
ViewModel
ViewModel is the middleman for your model and the View. Any inputs from your View will be forwarded to the ViewModel and then it will update or change the model. Other way is when the model updates, the state of the ViewModel changes and the View will automatically be asked to update.

Mixins

RouteInfo
A mixin to add route information to Widget

Properties

locator → GetIt
A simple Service Locator. It is used to register ViewModel and any other services within the app.
final

Enums

RouteTransition
Transitions when routing