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
succeededflag set tofalse.
Implementation
factory CommandResponse.failed(String message) {
return CommandResponse(message, false);
}