nextRound method

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

As cifras saem do passo de agora: cada rodada é um sorteio novo.

Implementation

@override
Future<ExerciseRound> nextRound(Random rng, {int roundIndex = 0}) async {
  final step = _step;
  return QuestionRound([
    for (final target in generateChords(step, rng)) Question(chord: target),
  ], timeLimit: step.timeLimit);
}