ExerciseRepeatLayer class

A camada da escada sobre a partitura: o aviso de "Errou" ou de "Acertou" (um véu sobre boa parte da partitura, com o texto grande), ou, sem aviso, a faixa com o compasso, o degrau e a contagem.

Inheritance

Constructors

ExerciseRepeatLayer({Key? key, required StateStreamable<RepeatStatus?> status, required String? measureLabel(int measure), required bool phone, Future<String> onReport(RepeatStatus state)?, bool echo = false})
const

Properties

echo → bool
A rodada é do Eco: o erro volta ao ouça do trecho, não ao "só notas".
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
measureLabel → String? Function(int measure)
O número que a partitura mostra no compasso measure (null se não há).
final
onReport → Future<String> Function(RepeatStatus state)?
Envia à equipe o erro que o aviso mostra (BR02) e devolve o código do relatório; falha com a mensagem para o aluno. Com null (aparelho sem envio, prévia, testes) o aviso "Errou" não tem o botão.
final
phone → bool
No celular, o texto do aviso é menor.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → StateStreamable<RepeatStatus?>
O estado da escada (PracticeCubit.repeatView, que é o state.repeat).
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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