RunningCommand<T extends Object> class
final
Represents the running state of a command.
- Inheritance
-
- Object
- CommandState<
T> - RunningCommand
Constructors
- RunningCommand()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- instanceName → String
-
Returns the current state as a string representation.
This is useful for debugging and logging purposes.
final
- isCancelled → bool
-
no setterinherited
- isFailure → bool
-
no setterinherited
- isIdle → bool
-
no setterinherited
- isRunning → bool
-
no setterinherited
- isSuccess → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
R> ({required R data(T value), R failure(Exception? exception)?, R cancelled()?, R running()?, required dynamic orElse()}) → R -
Maps the current state to a value of type
Rbased on the object's state.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited