copyWith method
Standard copyWith(...) function.
Implementation
CommandState copyWith(
{bool? enabled, bool? executing, String? errorMessage}) {
return CommandState(
enabled = enabled ?? this.enabled,
executing = executing ?? this.executing,
errorMessage = errorMessage ?? this.errorMessage);
}