scaleWidth method
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;
}