onSelect method

  1. @override
void onSelect()
override

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

Implementation

@override
void onSelect() {
  widget.state.setState(() {
    context.read<SelectedColorsNotifier>().clear();
    widget.state.repeatButtonKey.currentState?.deSelect();
    widget.state.widget.selectionMode.value = SelectionModes.multiple;
    widget.state.copyButtonKey.currentState?.deActivate();
    widget.state.mirrorHorizontalButtonKeySecondary.currentState
        ?.deActivate();
    widget.state.mirrorVerticalButtonKeySecondary.currentState?.deActivate();
    widget.state.selectionActionButtonKey.currentState?.select();
  });
  CatLogger().addLog(
    context: context,
    previousCommand: "",
    currentCommand: "copy cells",
    description: CatLoggingLevel.buttonSelect,
  );
}