isLandscape static method

bool isLandscape()

判断是否是横屏

返回结果: bool 是否为横屏

示例:

if (DScreenUtil.isLandscape()) print('当前为横屏模式');

Implementation

static bool isLandscape() {
  return Get.mediaQuery.orientation == Orientation.landscape;
}