presentation/command library

Classes

Command<T>
Facilitates interaction with a view model.
Command0<T>
A Command that accepts no arguments.
Command1<T, A>
A Command that accepts one argument.
Completed<T>
Error<T>
Initial<T>
Running<T>
ViewModelState<T>

Typedefs

CommandAction0<T> = Future<T> Function()
Defines a command action that returns a ViewModelState of type T. Used by Command0 for actions without arguments.
CommandAction1<T, A> = Future<T> Function(A)
Defines a command action that returns a ViewModelState of type T. Takes an argument of type A. Used by Command1 for actions with one argument.