ChartRoundState class

O que a tela da grade mostra. Imutável: a cada veredito ou comando, um estado novo.

Inheritance

Constructors

ChartRoundState({Map<ChartSlot, Color> colors = const {}, Map<int, HeardNote> heard = const {}, String? message, bool started = false, int? echoClosed, int? scoreBar, RoundResult? finished, int serial = 0})
const

Properties

colors → Map<ChartSlot, Color>
A cor de cada acorde da forma, pelo veredito (a casa da grade).
final
echoClosed → int?
O echo (EX14): a frase cujo TOQUE acabou por último, ou null.
final
finished → RoundResult?
O resultado da rodada, quando ela acaba: a partitura pinta os compassos.
final
hashCode → int
The hash code for this object.
no setterinherited
heard → Map<int, HeardNote>
O que o aluno tocou em cada acorde (EX18), pelo índice do acorde. Vazio nas outras rodadas.
final
message → String?
A linha do último erro ("compasso 6: faltou a 3ª de F"), ou null.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scoreBar → int?
O compasso (ocorrência, base 0) que o cursor da partitura acende (EX13), ou null.
final
serial → int
Sobe a cada comando que mexe no executor sem mudar os campos acima (pausa, base, volume): é o que faz a tela redesenhar os controles.
final
started → bool
O aluno apertou "Tocar".
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({Map<ChartSlot, Color>? colors, Map<int, HeardNote>? heard, String? message, bool? started, int? echoClosed, int? scoreBar, RoundResult? finished, int? serial}) → ChartRoundState
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