mirrorBoard method

void mirrorBoard(
  1. String direction
)

It calls the mirrorHorizontal or mirrorVertical function in the Dart code, depending on the value of the direction parameter

Args: direction (String): The direction to mirror the board.

Implementation

void mirrorBoard(String direction) {
  switch (direction) {
    case "horizontal":
      {
        _commandCaller.color("mirrorHorizontal", <dynamic>[]);
      }
      break;
    case "vertical":
      {
        _commandCaller.color("mirrorVertical", <dynamic>[]);
      }
      break;
    default:
      {
        _error = CatError.commandNotImplemented;
      }
      break;
  }
}