setState method
Sets the current state of the command.
Implementation
void setState({bool? enabled, bool? executing, String? errorMessage}) {
_state = state.copyWith(
enabled: enabled,
executing: executing,
errorMessage: errorMessage,
);
}