getType method

CalendarViewType getType(
  1. dynamic context
)

Implementation

CalendarViewType getType(context) {
  if (ScreenSizes.isMobile(context)) {
    return mobileViewType;
  } else if (ScreenSizes.isTablet(context)) {
    return tabletViewType;
  } else if (ScreenSizes.isLaptop(context)) {
    return laptopViewType;
  }
  return desktopViewType;
}