easy_mvvm library

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

Classes

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

Enums

RouteTransition
Transitions when routing

Mixins

RouteInfo
A mixin to add route information to Widget

Properties

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

Typedefs

PopInvokedContextCallback = void Function(BuildContext context, bool didPop)
A callback type for informing that a navigation pop has been invoked, whether or not it was handled successfully.
View<T extends EasyViewModel> = EasyView<T>
ViewModel = EasyViewModel