height static method

double height()

获取屏幕高度

返回结果: double 屏幕高度(单位: dp)

示例:

double h = DScreenUtil.height();
print(h); // 例如: 812.0

Implementation

static double height() {
  return Get.height;
}