QuestionBody class

Corpo de uma QuestionRound: conduz a sessão até o fim e devolve o resultado por onDone. Um corpo por rodada (a ExerciseScreen monta de novo a cada "Outra rodada"). O estado é do QuestionCubit, criado aqui e fechado com a tela.

Inheritance

Constructors

QuestionBody({Key? key, required ExerciseSpec spec, required QuestionRound round, required CourseFiles files, required SettingsCubit settings, required MidiInputService midiInput, required ScoreRenderer rendererFactory(), required ValueChanged<RoundResult> onDone, required AppClock clock, Future<SoundEngine?> ensureEngine()?, ChordNotation? courseChordNotation, bool metronomeOn = true})
const

Properties

clock → AppClock
O relógio do app (CT05c): o QuestionCubit o recebe por aqui.
final
courseChordNotation → ChordNotation?
A grafia que o curso fixa (chord-notation:); null segue a configuração do app (EX03).
final
ensureEngine → Future<SoundEngine?> Function()?
Abre o som (listen-note); null = sem som.
final
files → CourseFiles
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
metronomeOn → bool
Se o metrônomo da barra do exercício está ligado: a frase de ouvido toca com ele (contagem e batidas), como na leitura.
final
midiInput → MidiInputService
final
onDone → ValueChanged<RoundResult>
final
rendererFactory → ScoreRenderer Function()
final
round → QuestionRound
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
settings → SettingsCubit
final
spec → ExerciseSpec
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