AppDimensScope class abstract final

EN: Global resolution scope — the Flutter analog of the KMP metricsScope / Compose LocalDimenMetrics. AppDimensProvider publishes each window snapshot here so num.sdp-style getters resolve through one static read + one multiply (the fast lane).

Every publication fires notifier, so widgets that must track live window changes (resize, rotation, split-screen) can subscribe through AppDimensReactiveBuilder — the analog of Compose readers recomposing on LocalDimenMetrics.current changes.

PT: Escopo global de resolução — o análogo Flutter do metricsScope / LocalDimenMetrics do KMP. O AppDimensProvider publica cada snapshot de janela aqui para que getters como num.sdp resolvam com uma leitura estática e uma multiplicação (a faixa rápida).

Cada publicação dispara notifier, então widgets que precisam acompanhar mudanças ao vivo da janela (resize, rotação, split-screen) podem assinar via AppDimensReactiveBuilder — o análogo dos leitores Compose que recompostam quando LocalDimenMetrics.current muda.

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 Properties

context → AppDimensContextLike?
Currently published window context, or null.
no setter
metrics → DimenMetrics?
Currently published snapshot, or null before any publication.
no setter
metricsOrDefault → DimenMetrics
The effective snapshot: explicit slot, else the engine fallback.
no setter
notifier → MetricsChangeNotifier
Fired once per publication cycle; reactive widgets listen to this.
final
uiModeTypeOrDefault → UiModeType
The effective ui-mode type: published value, else undefined.
no setter

Static Methods

clear() → void
Clears every slot (used by tests).
fireIfChanged(DimenMetrics metrics, UiModeType uiModeType) → void
EN: Fires notifier only when the visible snapshot actually changed. PT: Dispara o notifier apenas quando o snapshot visível mudou de fato.
publish(DimenMetrics metrics) → void
Publishes metrics as the process-wide snapshot (fast-lane slot).
publishContext(AppDimensContextLike context) → void
Publishes the window context used by facilitators and the full engine.
publishUiModeType(UiModeType type) → void
Publishes the detected/forced UiModeType (used by *Mode/*Screen).
withMetrics<T>(DimenMetrics metrics, T body()) → T
Runs body with an explicit metrics scope (save/restore), mirroring DimenCache.withMetrics.