isPhone static method

bool isPhone()

判断是否是手机尺寸(宽度小于600dp)

返回结果: bool 是否为手机尺寸

示例:

if (DScreenUtil.isPhone()) print('当前设备为手机');

Implementation

static bool isPhone() {
  return Get.width < 600;
}