ChartRoundCubit constructor
- required TimedRound round,
- required TimedRoundRunner runner,
Implementation
ChartRoundCubit({required this.round, required this.runner})
: form = round.chart?.slots() ?? const [],
revealBytes = _revealBytesOf(round.echo),
super(const ChartRoundState()) {
_verdicts = runner.verdicts.listen(_onVerdict);
_positions = runner.stream.listen(_onPosition);
final done = runner.done;
if (round.scoreCursor && done != null) unawaited(done.then(_onDone));
}