h static method

double h(
  1. double value
)

Scales a height value relative to the design height.

Implementation

static double h(double value) {
  assert(_initialized, 'Call ScreenUtil.init(context) first.');
  return value * (_screenHeight / _designHeight);
}