ExerciseTimeState class
O estado dos minutos de treino: as entradas e se há um exercício aberto.
As entradas são as do registro, que mudam no lugar (o envio e a visita
guardam a referência, ver TrainingSession). Por isso o estado leva um
serial que sobe a cada mudança: é ele que faz cada mudança virar um estado
novo, e que quem escuta o stream precisa para saber que algo mudou.
Constructors
-
ExerciseTimeState({List<
TrainingSession> sessions = const [], bool treinando = false, int serial = 0}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
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
- serial → int
-
Sobe a cada mudança nas entradas ou em treinando.
final
-
sessions
→ List<
TrainingSession> -
Todas as entradas conhecidas, da mais antiga para a mais nova.
final
- stringify → bool?
-
If set to
true, the toString method will be overridden to output this instance's props.no setterinherited - treinando → bool
-
Se há um exercício de treino aberto agora (sem a saída ainda).
final
Methods
-
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