TrainingPreviewState class
O que a prévia mostra: o exemplo, a partitura (se o passo tem) e o que toca.
Os controles da partitura não ficam aqui: são objetos mutáveis, e quem os guarda é o TrainingPreviewCubit (a tela os pega dele). O estado leva o documento, que é um valor.
Constructors
- TrainingPreviewState({required TrainingPreview preview, VsbDocument? document, String? scoreError, bool noSound = false, bool playing = false})
-
const
Properties
- document → VsbDocument?
-
A partitura desenhada;
nullenquanto desenha (ou quando o passo não tem partitura). Com ela, os controles do Cubit já estão prontos.final - hashCode → int
-
The hash code for this object.
no setterinherited
- noSound → bool
-
Não há saída de som para ouvir o passo.
final
- playing → bool
-
O exemplo está tocando agora.
final
- preview → TrainingPreview
-
O exemplo de agora: o que se toca e o que o treino mostra.
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
- scoreError → String?
-
Por que a partitura não saiu, se não saiu.
final
- stringify → bool?
-
If set to
true, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
copyWith(
{bool? noSound, bool? playing}) → TrainingPreviewState -
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