RxCommandAsync<TParam, TResult> class

Inheritance
  • Object
  • RxCommand<TParam, TResult>
  • RxCommandAsync

Constructors

RxCommandAsync(AsyncFunc1<TParam, TResult> func, [ Observable<bool> canExecute ])

Properties

canExecute → Observable<bool>
Observable stream that issues a bool on any change of the current executable state of the command. Meaning if the command cann be executed or not. This will issue false while the command executes but also if the command receives a false from the canExecute Observable that you can pass when creating the Command
read-only, inherited
hashCode → int
The hash code for this object. [...]
read-only, inherited
isExecuting → Observable<bool>
Observable stream that issues a bool on any execution state change of the command
read-only, inherited
results → Observable<TResult>
Observable stream that outputs any result from the called handler function. If the handler function has void return type it will still output one Null item so that you can listen for the end of the execution.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
thrownExceptions → Observable<Exception>
When subribing to thrownExceptionsyou will every excetpion that was thrown in your handler function as an event on this Observable. If no subscription exists the Exception will be rethrown
read-only, inherited

Methods

execute([TParam param ]) → dynamic
Calls the wrapped handler function with an option input parameter
dispose() → void
If you don't need a command any longer it is a good practise to dispose it to make sure all stream subsriptions are cancelled to prevent memory leaks
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited