ExerciseRoundState class
O que a tela da rodada mostra. Imutável: cada mudança é um estado novo.
Constructors
-
ExerciseRoundState({int roundNumber = 0, bool loading = true, String? error, bool running = false, RoundResult? result, PassVerdict? verdict, int? errors, int? previousBest, bool repeating = false, bool startedRound = false, List<
RoundResult> history = const [], CourseUse? courseUse, QuestionRound? questionRound, ExerciseChartState chart = ExerciseChartState.vazio, int serial = 0}) -
const
Properties
- chart → ExerciseChartState
-
A grade (EX11), ou o vazio fora dela.
final
- courseUse → CourseUse?
-
O texto "Use este exercício" da rodada na tela (issue 4);
nullse a origem não tem equivalente no curso.final - error → String?
-
A mensagem que vai no lugar da partitura (
nullsem erro).final - errors → int?
-
As teclas erradas da rodada que acabou (
nullnas perguntas).final - hashCode → int
-
The hash code for this object.
no setterinherited
-
history
→ List<
RoundResult> -
As rodadas que contam para o passe deste exercício.
final
- loading → bool
-
A rodada está sendo montada.
final
- previousBest → int?
-
O melhor percentual guardado antes da rodada, para o painel comparar.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- questionRound → QuestionRound?
-
A rodada de perguntas, ou
nullnuma rodada de partitura.final - repeating → bool
-
A rodada que se monta é a repetição da anterior (depois de ouvir).
final
- result → RoundResult?
-
O resultado da última rodada que acabou (
nullantes do fim).final - roundNumber → int
-
A rodada mostrada (sobe a cada uma montada, e o aluno virtual a repõe).
final
- running → bool
-
A rodada está tocando (pode estar pausada: ver
ExerciseRoundCubit.playing).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serial → int
-
Sobe a cada mudança que não mexe nos campos acima (pausa, aluno virtual):
é o que faz a tela redesenhar.
final
- startedRound → bool
-
A tela já pode montar rodadas (com o teclado, ou sem exigi-lo).
final
- stringify → bool?
-
If set to
true, the toString method will be overridden to output this instance's props.no setterinherited - verdict → PassVerdict?
-
O veredito do passe depois dessa rodada.
final
Methods
-
copyWith(
{int? roundNumber, bool? loading, Object? error = _manter, bool? running, Object? result = _manter, Object? verdict = _manter, Object? errors = _manter, Object? previousBest = _manter, bool? repeating, bool? startedRound, List< RoundResult> ? history, Object? courseUse = _manter, Object? questionRound = _manter, ExerciseChartState? chart, int? serial}) → ExerciseRoundState -
Copia o estado. Os campos anuláveis aceitam
nullde propósito: quem não é passado fica como está. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited