ProgressoDaRotinaCubit class

Inheritance

Constructors

ProgressoDaRotinaCubit({required RotinaProgressoStore store, required AppClock clock, required String alunoUid})

Properties

alunoUid → String
O aluno conectado: a chave do progresso leva o uid, então outra conta no mesmo aparelho não vê o progresso desta.
final
clock → AppClock
final
hashCode → int
The hash code for this object.
no setterinherited
isClosed → bool
Whether the bloc is closed.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → ProgressoDaRotinaState
The current state.
no setterinherited
store → RotinaProgressoStore
final
stream → Stream<ProgressoDaRotinaState>
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
carregar() → Future<void>
Lê o progresso guardado. Sem leitura, nada se grava.
close() → Future<void>
Closes the instance. This method should be called when the instance is no longer needed. Once close is called, the instance can no longer be used.
inherited
desfazerPulo({required String profUid, required DateTime dia, required RotinaItem item}) → void
Desfaz o pulo, se ele foi feito hoje.
emit(ProgressoDaRotinaState state) → void
Updates the state to the provided state. emit does nothing if the state being emitted is equal to the current state.
inherited
itensDoDia({required String profUid, required DateTime dia}) → Map<String, RotinaProgressoItem>
O progresso de cada item do dia dia da rotina do professor profUid, pelo id do item (o que o envio manda ao professor). Vazio se o aluno não abriu nada no dia.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChange(Change<ProgressoDaRotinaState> 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
progressoDe({required String profUid, required DateTime dia, required String itemId}) → RotinaProgressoItem?
O progresso de um item, ou null se o aluno ainda não o abriu.
pular({required String profUid, required DateTime dia, required RotinaItem item, required String motivo}) → void
Pula o item com motivo. Um item feito não se pula; o motivo vazio ou longo demais é recusado com a mensagem.
registrarRodada({required String profUid, required DateTime dia, required RotinaItem item, required ExerciseRoundReport relatorio}) → void
O fim de uma rodada que conta (o relatório da tela do exercício).
registrarSessao({required String profUid, required DateTime dia, required RotinaItem item, required TrainingSession sessao}) → void
A visita sessao ao item (o tempo na tela de cada gravação).
toString() → String
A string representation of this object.
inherited

Operators

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