checkEndGame method

  1. @override
bool checkEndGame()
override

Returns true if the all the answers is correct or when lives fall to 0

Implementation

@override
bool checkEndGame() {
  if (exerciseInfo != null && _answerQueue.isEmpty) {
    apiBase.completeExercise(exerciseInfo!.id);
  }
  return (lives == 0 || _answerQueue.isEmpty);
}