CommandState class

Represents the current state of a command.

Constructors

CommandState(bool enabled, bool executing, String errorMessage)
const
CommandState.defaultState()
Create an instance with enabled = true, executing = false and errorMessage = ''
factory

Properties

canBeExecuted bool
Can the user execute the commandFunc.
no setter
enabled bool
Is the command enabled
final
errorMessage String
Error message of the last execution.
final
executing bool
Is the command currently executed
final
hasErrorMessage bool
Is there an errorMessage
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? enabled, bool? executing, String? errorMessage}) CommandState
Standard copyWith(...) function.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited