TheoryCard class
Uma pergunta antes de virar Question: o enunciado (com «n» nas cifras),
a revelação, as opções (ou a nota, ou o acorde no teclado) e a partitura.
Constructors
-
TheoryCard({required String prompt, required String explanation, List<
ChordSymbol> chords = const [], List<TheoryOption> options = const [], int? correct, int? pitch, PlayChord? playChord, String? score}) -
const
Properties
-
chords
→ List<
ChordSymbol> -
As cifras do enunciado e da revelação (
«n»).final - correct → int?
-
O índice certo em options.
final
- explanation → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
options
→ List<
TheoryOption> -
Os botões, já na ordem da tela; vazio nas perguntas do teclado.
final
- pitch → int?
-
A altura MIDI esperada, quando a resposta é uma nota no teclado (qualquer
oitava serve).
final
- playChord → PlayChord?
-
A resposta é um acorde no teclado (o
checkPlayChorddo EX02).final - prompt → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → String?
-
A partitura (MusicXML) desta pergunta, quando ela tem uma na pauta.
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