CommandResult<TParam, TResult> class
Combined execution state of a Command
represented using four of its fields.
A CommandResult will be issued for any state change of any of its fields
During normal command execution you will get this items by listening at the command's .results
ValueListenable.
- If the command was just newly created you will get
param data, null, null, false
(paramData, data, error, isExecuting) - When calling execute:
param data, null, null, true
- When execution finishes:
param data, the result, null, false
param data
is the data that you pass as parameter when calling the command
- Available extensions
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