incrementMistakesCounter method

void incrementMistakesCounter(
  1. int index
)

Adds 1 to the index element of mistakesCounter as well as totalMistakes and calls notifyListeners

Implementation

void incrementMistakesCounter(int index){
  mistakesCounter[index]++;
  totalMistakes++;
  notifyListeners();
}