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 if directly listening at the command. [...]
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 results Observable (Observable wrap Dart Streams) Additionally it offers Observables for it's current execution state, fs the command can be executed and for all possibly thrown exceptions during command execution. RxCommand also implments the Observable interface so you can listen directly to the RxCommand which emitts CommandResult<TRESULT> which is often easier in combaination with Flutter StreamBuilder because you have all state information at one place. [...]
RxCommandAsync<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>