rx_command library

Classes

CommandResult<T>
Combined execution state of an RxCommand Will be issued for any statechange of any of the fields During normal command execution you will get this items listening at the command's .results observable. [...]
MockCommand<TParam, TResult>
MockCommand allows you to easily moch an RxCommand for your Unit and UI tests Mocking a command with mockito https://pub.dartlang.org/packages/mockito has its limitations.
RxCommand<TParam, TResult>
RxCommand capsules a given handler function that can then be executed by its execute method. The result of this method is then published through its Observable (Observable wrap Dart Streams) Additionally it offers Observables for it's current execution state, if the command can be executed and for all possibly thrown exceptions during command execution. [...]
RxCommandAsync<TParam, TResult>
RxCommandListener<TParam, TResult>
RxCommandStream<TParam, TResult>
RxCommandSync<TParam, TResult>
Implementation of RxCommand to handle async handler functions. Normally you will not instanciate this directly but use one of the factory methods of RxCommand.

Typedefs

Action() → void
Action1<TParam>(TParam param) → void
AsyncAction() → Future
AsyncAction1<TParam>(TParam param) → Future
AsyncFunc<TResult>() → Future<TResult>
AsyncFunc1<TParam, TResult>(TParam param) → Future<TResult>
Func<TResult>() → TResult
Func1<TParam, TResult>(TParam param) → TResult
StreamProvider<TParam, TResult>(TParam param) → Stream<TResult>