ScreenConfiguration class
Constructors
Properties
- densityDpi → int
-
Display density in dpi (
devicePixelRatio × 160by convention).final - effectiveSmallestWidthDp → int
-
Resolves the effective smallest width, falling back to the min dimension
and finally to the 300 dp design baseline.
no setter
- fontScale → double
-
Configured system font scale (normalized to a safe value later).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isLandscape → bool
-
no setter
- isPortrait → bool
-
no setter
- orientation → int
-
Raw orientation code (0 undefined · 1 portrait · 2 landscape).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenHeightDp → int
-
Current window bounds height in dp.
final
- screenWidthDp → int
-
Current window bounds width in dp (logical pixels).
final
- smallestScreenWidthDp → int
-
Smallest historical window width in dp; when unknown/zero it is derived
from screenWidthDp/screenHeightDp.
final
- uiMode → int
-
Raw ui-mode value (see UiModeType.configValue).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- baseline → const ScreenConfiguration
- Baseline reference configuration (300 × 533 @ 160dpi, font scale 1.0).
- orientationLandscape → const int
- orientationPortrait → const int
- orientationUndefined → const int