onSelect method
override
It's a function that takes no arguments and returns nothing.
Implementation
@override
void onSelect() {
widget.state.copyButtonKey.currentState?.deSelect();
widget.state.mirrorHorizontalButtonKeySecondary.currentState?.deSelect();
widget.state.widget.selectionMode.value = SelectionModes.mirrorVertical;
for (final CrossButton i in widget.state.widget.selectedButtons.value) {
i.unSelect();
}
widget.state.widget.selectedButtons.value.clear();
for (final CrossButton i in widget.state.widget.coloredButtons.value) {
final Pair<int, int> pos = i.position;
final Widget button = i.buttons[pos.first].children[5 - pos.second];
if (button is CrossButton) {
button.selectRepeat();
widget.state.widget.selectedButtons.value.add(button);
}
}
CatLogger().addLog(
context: context,
previousCommand: "",
currentCommand: "cells mirror vertical",
description: CatLoggingLevel.buttonSelect,
);
}