nextRandomCard method

void nextRandomCard()

Pega uma carta aleatóriamente do baralho

Implementation

void nextRandomCard() {
  this._flashcard = this._deck.pullRandomCard();
  if (this._flashcard == null) {
    this._deck.reset();
    this._flashcard = this._deck.pullRandomCard();
    this._end = true;
    this._deck.reset();
  }
  notifyListeners();
}