nextRound method

  1. @override
Future<ExerciseRound> nextRound(
  1. Random rng, {
  2. int roundIndex = 0,
})
override

Sorteia ou monta a próxima rodada. roundIndex é a rodada da sessão, de 0 (EX05: o tom do play-score depende dela).

Implementation

@override
Future<ExerciseRound> nextRound(Random rng, {int roundIndex = 0}) async {
  final stage = _next;
  if (stage == IntegratedStage.read) {
    // Ciclo novo: o passo de agora e as duas sementes.
    final step = progress.step;
    _step = step;
    _seeds = sightIntegratedSeeds(step, rng);
    _cycleClean = true;
  }
  _current = stage;
  _recorded = false;
  return _build(stage);
}