onix_flutter_mvvm library

Classes

Command<T>
Command0<T>
Command without arguments. Takes a CommandAction0 as action.
Command1<T, A>
Command with one argument. Takes a CommandAction1 as action.
Command2<T, A, B>
Command with two arguments. Takes a CommandAction2 as action.
Command3<T, A, B, C>
Command with three arguments. Takes a CommandAction3 as action.
ViewModel
ViewModelStateful<T>
ViewModelWidget<T extends StatefulWidget, V extends ViewModel>

Typedefs

CommandAction0<T> = Future<Result<T>> Function()
CommandAction1<T, A> = Future<Result<T>> Function(A)
CommandAction2<T, A, B> = Future<Result<T>> Function(A, B)
CommandAction3<T, A, B, C> = Future<Result<T>> Function(A, B, C)
CommandBuilder<T> = Widget Function(BuildContext context, Command<T> vm)
ViewModelBuilder<V extends ViewModel> = Widget Function(BuildContext context, V vm)