w static method

double w(
  1. double value
)

Scales a width value relative to the design width.

Implementation

static double w(double value) {
  assert(_initialized, 'Call ScreenUtil.init(context) first.');
  return value * (_screenWidth / _designWidth);
}