TrainingPage constructor
TrainingPage({
- Key? key,
- required DailyPlan dailyPlan,
- required bool haveOverviewPage,
- required void onFinish(),
- TrainingTheme theme = const TrainingTheme(),
Implementation
TrainingPage({
Key? key,
required DailyPlan dailyPlan,
required bool haveOverviewPage,
required this.onFinish,
this.theme = const TrainingTheme(),
}) : super(key: key) {
bloc = TrainingBloc(
dailyPlan: dailyPlan,
haveOverview: haveOverviewPage,
trainingTheme: theme);
if (haveOverviewPage) {
bloc.add(ShowOverViewEvent());
}
}