QuestionState class

Tudo o que a tela da pergunta mostra. A sessão (quem está na pergunta, se está revelando, se a grade pausou) não é copiada aqui: a tela a lê no QuestionCubit.sessao e o serial avisa quando ela andou.

Inheritance

Constructors

QuestionState({int serial = 0, int tick = 0, bool noSound = false, AnswerMarks answer = const AnswerMarks(), ChordMarks chord = const ChordMarks(), ReviewMarks review = const ReviewMarks(), ScoreMarks score = const ScoreMarks()})
const

Properties

answer → AnswerMarks
final
chord → ChordMarks
final
hashCode → int
The hash code for this object.
no setterinherited
noSound → bool
Não há saída de som: a tela mostra o aviso.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
review → ReviewMarks
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
score → ScoreMarks
final
serial → int
Sobe em cada aviso sem campo (a sessão andou), para o estado nunca ser igual ao anterior.
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
tick → int
O relógio da grade com tempo (50 ms). Só a barra do tempo o escuta.
final

Methods

copyWith({int? serial, int? tick, bool? noSound, AnswerMarks? answer, ChordMarks? chord, ReviewMarks? review, ScoreMarks? score}) → QuestionState
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