onSelect method

  1. @override
void onSelect()
override

It's a function that takes no arguments and returns nothing.

Implementation

@override
void onSelect() {
  if (CatInterpreter().executedCommands > 1) {
    CatInterpreter()
        .mirror("vertical", CATLocalizations.of(context).languageCode);
  } else {
    widget.state.widget.shakeKey.currentState?.shake();
  }
  CatLogger().addLog(
    context: context,
    previousCommand: "",
    currentCommand: "mirror vertical",
    description: CatLoggingLevel.buttonSelect,
  );
}