courseUseOf method
- ExerciseRound round
override
As cifras da rodada viram play-chord (o curso não tem acorde de ouvido
para tocar); o aviso ao lado diz isso (issue 4).
Implementation
@override
CourseUse? courseUseOf(ExerciseRound round) {
if (round is! QuestionRound) return null;
final use = chordsCourseUse(
round,
id: 'acordes-de-ouvido-$id',
title: title,
accuracy: (kChordClean * 100 / round.questions.length).ceil(),
);
if (use == null) return null;
return CourseUse(
text: use.text,
files: use.files,
notes: [...use.notes, kChordEarCourseNote],
);
}