getRealScreenDeviceLayout static method

BasicScreenDevice getRealScreenDeviceLayout()

Implementation

static BasicScreenDevice getRealScreenDeviceLayout() {
  if (currentWidth >= BasicScreenWidth().widthDesktop) {
    if (BasicPlatform.isWeb) return BasicScreenDevice.desktop;
    return BasicScreenDevice.tablet;
  } else if (currentWidth >= BasicScreenWidth().widthTablet) {
    if (BasicPlatform.isWeb) return BasicScreenDevice.desktop;
    return BasicScreenDevice.tablet;
  } else {
    return BasicScreenDevice.mobile;
  }
}