onDismiss method

  1. @override
void onDismiss()
override

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

Implementation

@override
void onDismiss() {
  widget.state.setState(() {
    widget.state.widget.selectionMode.value = SelectionModes.base;
    widget.state.widget.selectedButtons.value.clear();
    widget.state.widget.coloredButtons.value.clear();
    widget.state.widget.resetShape.notifyListeners();
  });
  CatLogger().addLog(
    context: context,
    previousCommand: "",
    currentCommand: "copy commands",
    description: CatLoggingLevel.buttonDismiss,
  );
}