CommandResponse.failed constructor

CommandResponse.failed(
  1. 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 to false.

Implementation

factory CommandResponse.failed(String message) {
  return CommandResponse(message, false);
}