endSection method
Implementation
Future<void> endSection() async {
final nextSection = _getNextSection(_program, state.currentSetSectionIndex);
// 運動の終了
if (nextSection == null) {
_logger.i('end exercises');
_eventController.add(const RehabilitationEvent.endExercise());
return;
}
await moveToNextSection(nextSection);
return;
// endSectionの完了イベントの発火 viewmodeで受け取る
}