Question constructor

const Question({
  1. String? prompt,
  2. List<String> answers = const [],
  3. int? correct,
  4. int? expectedPitch,
  5. Pitch? spelled,
  6. String? highlightId,
  7. bool anyOctave = false,
  8. List<SoundCue> sound = const [],
  9. ScoreComparison? compare,
  10. ChordTarget? chord,
  11. PlayChord? playChord,
  12. List<TimedNote> timed = const [],
  13. ChordFunction? chordFunction,
  14. BeatCue? beatCue,
  15. ProgressionReveal? progression,
  16. List<int> correctSet = const [],
  17. List<BeatCue> answerCues = const [],
  18. List<ChordSymbol> chords = const [],
  19. List<ChordSymbol> answerChords = const [],
  20. String? explanation,
  21. Uint8List? scoreBytes,
  22. String? scoreFileName,
  23. Uint8List scoreWhenWrong(
    1. int midi
    )?,
  24. String? topic,
})

Implementation

const Question({
  this.prompt,
  this.answers = const [],
  this.correct,
  this.expectedPitch,
  this.spelled,
  this.highlightId,
  this.anyOctave = false,
  this.sound = const [],
  this.compare,
  this.chord,
  this.playChord,
  this.timed = const [],
  this.chordFunction,
  this.beatCue,
  this.progression,
  this.correctSet = const [],
  this.answerCues = const [],
  this.chords = const [],
  this.answerChords = const [],
  this.explanation,
  this.scoreBytes,
  this.scoreFileName,
  this.scoreWhenWrong,
  this.topic,
});