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. [...]
-
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 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 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.