ChartRoundView class

A tela de uma rodada do play-chart: a rodada round (já montada e com o runner carregado). result vem quando ela acaba; practice é a rodada só dos compassos difíceis, que não conta para o passe.

Inheritance

Constructors

ChartRoundView({Key? key, required TimedRound round, required TimedRoundRunner runner, required VoidCallback onPlay, required void onRepeatWorst(Set<int> bars), required VoidCallback onNext, required ScoreRenderer rendererFactory(), RoundResult? result, String? passLine, bool practice = false, ChordNotation notation = ChordNotation.american, VoidCallback? onPreview})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
notation → ChordNotation
final
onNext → VoidCallback
"Outra rodada": uma grade nova, sorteada de novo.
final
onPlay → VoidCallback
O aluno aperta "Tocar": quem chama o start() do executor.
final
onPreview → VoidCallback?
"Ouvir a melodia" (EX16, by-ear): toca a forma uma vez, antes de começar.
final
onRepeatWorst → void Function(Set<int> bars)
Os compassos com erro, pelo índice (base 0) da ocorrência.
final
passLine → String?
A linha do veredito do passe ("Passou: 2 rodadas seguidas"), ou null.
final
practice → bool
final
rendererFactory → ScoreRenderer Function()
O renderizador da partitura, quando a rodada tem uma (EX13).
final
result → RoundResult?
final
round → TimedRound
final
runner → TimedRoundRunner
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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