finish method

void finish({
  1. bool notify = true,
})

Finishes this game.

Implementation

void finish({bool notify = true}) {
  countdown?.pause();
  _isFinished = true;
  if (notify) {
    notifyListeners();
  }
}