CommandResponse.failed constructor
- String message
Creates a CommandResponse representing a failure.
message
: The error message explaining why the command failed.- Returns: A CommandResponse with the
succeeded
flag set tofalse
.
Implementation
factory CommandResponse.failed(String message) {
return CommandResponse(message, false);
}