DimenMetrics constructor
DimenMetrics({})
Implementation
DimenMetrics({
required int screenWidthDp,
required int screenHeightDp,
required int smallestScreenWidthDp,
required int densityDpi,
double fontScale = 1.0,
this.orientation = ScreenConfiguration.orientationUndefined,
this.uiMode = 0,
this.isInMultiWindowMode = false,
ScreenConfiguration? configuration,
}) : screenWidthDp = screenWidthDp,
screenHeightDp = screenHeightDp,
smallestScreenWidthDp = smallestScreenWidthDp,
densityDpi = densityDpi,
_fontScaleRaw = (fontScale.isFinite && fontScale > 0) ? fontScale : 1.0,
configuration = configuration ?? const ScreenConfiguration(),
_d = _Derived.compute(
w: screenWidthDp,
h: screenHeightDp,
sw: smallestScreenWidthDp,
dpi: densityDpi,
fontScale: fontScale,
);