toggleIsCodeValidated method

void toggleIsCodeValidated()

Changes isCodeValidated to the opposite value of its current one and calls notifyListeners

Implementation

void toggleIsCodeValidated(){
  isCodeValidated = !isCodeValidated;
  notifyListeners();
}