getScreenSize method

ScreenSize getScreenSize()

Implementation

ScreenSize getScreenSize() {
  if (isExtraSmallScreen) {
    return ScreenSize.xsmall;
  } else if (isSmallScreen) {
    return ScreenSize.small;
  } else if (isMediumScreen) {
    return ScreenSize.medium;
  } else if (isLargeScreen) {
    return ScreenSize.large;
  } else if (isExtraLargeScreen) {
    return ScreenSize.xlarge;
  } else {
    return ScreenSize.unknown;
  }
}