getPageIndex function
Get the page index for the current calendar format. params CalendarFormat calendarFormat The calendar format.
Implementation
int getPageIndex(CalendarFormat calendarFormat) {
switch (calendarFormat) {
case CalendarFormat.day:
return defaultPageIndex;
case CalendarFormat.threeDays:
return defaultPageIndex;
case CalendarFormat.week:
return defaultPageIndex;
}
}