CommandResult<T> 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
Constructors
-
CommandResult(T data,
dynamic error, bool isExecuting ) -
const
- CommandResult.blank()
-
const
-
CommandResult.data(T data
) -
const
-
CommandResult.error(dynamic error
) -
const
- CommandResult.isLoading()
-
const
Properties
- data → T
-
final
- error → dynamic
-
final
- hasData → bool
-
read-only
- hasError → bool
-
read-only
- hashCode → int
-
The hash code for this object. [...]
read-only
- isExecuting → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String - Returns a string representation of this object.
Operators
-
operator ==(
Object other ) → bool - The equality operator. [...]