ChartRoundCubit class

A tela de uma rodada da grade: ouve o executor e guarda o que pintar.

Inheritance

Constructors

ChartRoundCubit({required TimedRound round, required TimedRoundRunner runner})

Properties

cursor → ChartCursorCubit
O cursor da grade (ChartView): o compasso e o tempo dentro dele.
final
form → List<ChartSlot>
Os acordes da forma (uma volta), para pintar cada um pelo acerto. Vazia sem grade (a rodada de partitura).
final
hashCode → int
The hash code for this object.
no setterinherited
isClosed → bool
Whether the bloc is closed.
no setterinherited
revealBytes → List<Uint8List>
A frase certa de cada echo (EX14), em bytes, pelo índice da frase: a mesma Uint8List reaproveita a partitura da revelação. Vazia nas outras rodadas.
final
round → TimedRound
final
runner → TimedRoundRunner
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → ChartRoundState
The current state.
no setterinherited
stream → Stream<ChartRoundState>
The current stream of states.
no setterinherited

Methods

addError(Object error, [StackTrace? stackTrace]) → void
Reports an error which triggers onError with an optional StackTrace.
inherited
alternarBase() → void
Liga ou desliga a base na hora (EX12), como o metrônomo.
alternarPausa() → void
"Pausar" e "Continuar": pausa ou volta o executor, e redesenha os controles.
close() → Future<void>
Para de ouvir o executor e fecha o cursor. O super.close() vem antes das esperas: a partir dele, isClosed já vale e nenhum emit chega.
override
comecar() → void
O aluno apertou "Tocar". Quem começa a rodada é o onPlay da tela.
emit(ChartRoundState state) → void
Updates the state to the provided state. emit does nothing if the state being emitted is equal to the current state.
inherited
mudarVolumeBase(double volume) → void
O volume da base (EX12), de 0 a 100.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChange(Change<ChartRoundState> change) → void
Called whenever a change occurs with the given change. A change occurs when a new state is emitted. onChange is called before the state of the cubit is updated. onChange is a great spot to add logging/analytics for a specific cubit.
inherited
onError(Object error, StackTrace stackTrace) → void
Called whenever an error occurs and notifies BlocObserver.onError.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

colorOf(PracticeVerdictKind kind) → Color
A cor de um veredito na grade e na linha de tempo.