LessonView constructor
const
LessonView({ - Key? key,
- required Lesson lesson,
- required CourseFiles files,
- required AppClock clock,
- Color highlightColor = ZClassicPalette.accent,
- double haloWidth = 1.0,
- NoteNaming naming = NoteNaming.latin,
- ChordNotation chordNotation = ChordNotation.american,
- SoundEngine? engine,
- ScoreRenderer? renderer,
- bool hasKeyboard = true,
- Map<String, ExerciseCardState> exerciseStates = const {},
- void onExerciseStart(
- ExerciseSpec spec
)?,
- LessonLinkOpener? openLink,
- LessonAudioPlayer audioPlayerFactory()?,
- SingleAudioPlay? audioCoordinator,
- 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,
});