setSaveButtonPressed method

void setSaveButtonPressed(
  1. bool x
)

Assigns the argument x to saveButtonPressed and calls notifyListeners

Implementation

void setSaveButtonPressed(bool x){
  saveButtonPressed = x;
  notifyListeners();
}