DimenScaledEngine class abstract final

EN: Scaled engine. Mirrors the Kotlin calculateScaledDp exactly:

  1. Applies Inverter rules to swap the effective DpQualifier.
  2. When ignoreMultiWindows is set and the window is constrained, returns the base unchanged.
  3. Default SMALL_WIDTH + no custom sensitivity delegates to the snapshot precomputed multipliers (single multiply).
  4. Other qualifiers / custom sensitivity compute inline.

PT: Motor escalado. Espelha o calculateScaledDp do Kotlin exatamente:

  1. Aplica as regras de Inverter para trocar o DpQualifier efetivo.
  2. Com ignoreMultiWindows e janela limitada, devolve a base inalterada.
  3. SMALL_WIDTH padrão + sem sensibilidade customizada usa os multiplicadores pré-computados do snapshot (uma multiplicação).
  4. Outros qualificadores / sensibilidade customizada calculam inline.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

calculateScaledDp(double baseValue, ScreenConfiguration configuration, DpQualifier qualifier, Inverter inverter, bool ignoreMultiWindows, bool applyAspectRatio, double? customSensitivityK, {bool? knownInMultiWindow, DimenMetrics? metrics}) double
Pure-math scaled dp kernel over an explicit configuration.
resolveScaledDp(double base, AppDimensContextLike scope, DpQualifier qualifier, {Inverter inverter = Inverter.standard, bool ignoreMultiWindows = false, bool applyAspectRatio = false, double? customSensitivityK}) double
Full-path scaled dp resolution against a window-like scope.
resolveScaledPx(double base, AppDimensContextLike scope, DpQualifier qualifier, {Inverter inverter = Inverter.standard, bool ignoreMultiWindows = false, bool applyAspectRatio = false, double? customSensitivityK}) double
Full-path scaled px resolution against a window-like scope.
resolveScaledSpPx(double base, AppDimensContextLike scope, DpQualifier qualifier, {bool fontScale = true, Inverter inverter = Inverter.standard, bool ignoreMultiWindows = false, bool applyAspectRatio = false, double? customSensitivityK}) double
Rendered physical pixels of a scaled sp resolution.
resolveScaledSpValue(double base, AppDimensContextLike scope, DpQualifier qualifier, {bool fontScale = true, Inverter inverter = Inverter.standard, bool ignoreMultiWindows = false, bool applyAspectRatio = false, double? customSensitivityK}) double
Scaled sp value (logical sp): with fontScale the framework applies the system font scale at render; without it the value pre-divides by the scale so rendering cancels it back.