CommandResponse.failed constructor
CommandResponse.failed(
- 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);
}