CommandResult<TParam, TResult> class
Combined execution state of an RxCommand
Will be issued for any state change of any of the fields
During normal command execution you will get this items listening at the command's .results
observable.
- If the command was just newly created you will get
null, null, false
(data, error, isExecuting) - When calling execute:
null, null, true
- When execution finishes:
the result, null, false
- When execution finishes:
param data, the result, null, false
param data
is the data that you pass as parameter when calling the command
Constructors
- CommandResult(TParam? paramData, TResult? data, Object? error, bool isExecuting)
-
const
- CommandResult.blank()
-
const
- CommandResult.data(TParam? param, TResult data)
-
const
- CommandResult.error(TParam? param, dynamic error)
-
const
- CommandResult.isLoading([TParam? param])
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override