scaleWidth method

double scaleWidth(
  1. num width
)

Scale width based on design width and current screen width.

Implementation

double scaleWidth(num width) {
  _assertInitialized();
  if (width < 0) {
    throw RangeError('Width must be non-negative.');
  }
  return width.toDouble() * _scaleWidth;
}