isDesktop static method

bool isDesktop()

判断是否是桌面尺寸(宽度大于等于1200dp)

返回结果: bool 是否为桌面(PC)尺寸

示例:

if (DScreenUtil.isDesktop()) print('当前为桌面设备');

Implementation

static bool isDesktop() {
  return Get.width >= 1200;
}