getView method
Implementation
CalendarView getView(CalendarViewType viewType) {
switch (viewType) {
case CalendarViewType.day:
return CalendarDayView<T>(
key: viewKey,
eventProvider: widget.eventProvider,
initialStartShowingDate: startShowingDate,
initialEndShowingDate: endShowingDate,
onDateIntervalChange: onShowingDateChange,
);
case CalendarViewType.threeday:
return Calendar3DayView<T>(
key: viewKey,
eventProvider: widget.eventProvider,
initialStartShowingDate: startShowingDate,
initialEndShowingDate: endShowingDate,
onDateIntervalChange: onShowingDateChange,
);
case CalendarViewType.workweek:
return CalendarWorkweekView<T>(
key: viewKey,
eventProvider: widget.eventProvider,
initialStartShowingDate: startShowingDate,
initialEndShowingDate: endShowingDate,
onDateIntervalChange: onShowingDateChange,
);
case CalendarViewType.week:
return CalendarWeekView<T>(
key: viewKey,
eventProvider: widget.eventProvider,
initialStartShowingDate: startShowingDate,
initialEndShowingDate: endShowingDate,
onDateIntervalChange: onShowingDateChange,
);
default:
return CalendarWeekView<T>(
key: viewKey,
eventProvider: widget.eventProvider,
initialStartShowingDate: startShowingDate,
initialEndShowingDate: endShowingDate,
onDateIntervalChange: onShowingDateChange,
);
}
}