LessonView constructor

const LessonView({
  1. Key? key,
  2. required Lesson lesson,
  3. required CourseFiles files,
  4. required AppClock clock,
  5. Color highlightColor = ZClassicPalette.accent,
  6. double haloWidth = 1.0,
  7. NoteNaming naming = NoteNaming.latin,
  8. ChordNotation chordNotation = ChordNotation.american,
  9. SoundEngine? engine,
  10. ScoreRenderer? renderer,
  11. bool hasKeyboard = true,
  12. Map<String, ExerciseCardState> exerciseStates = const {},
  13. void onExerciseStart(
    1. ExerciseSpec spec
    )?,
  14. LessonLinkOpener? openLink,
  15. LessonAudioPlayer audioPlayerFactory()?,
  16. SingleAudioPlay? audioCoordinator,
  17. String? exerciseNotice,
})

Implementation

const LessonView({
  super.key,
  required this.lesson,
  required this.files,
  required this.clock,
  this.highlightColor = ZClassicPalette.accent,
  this.haloWidth = 1.0,
  this.naming = NoteNaming.latin,
  this.chordNotation = ChordNotation.american,
  this.engine,
  this.renderer,
  this.hasKeyboard = true,
  this.exerciseStates = const {},
  this.onExerciseStart,
  this.openLink,
  this.audioPlayerFactory,
  this.audioCoordinator,
  this.exerciseNotice,
});