ScreenAdaptiveData class
Immutable data holding screen adaptation values provided by FlexiConfig.
This class contains all the necessary dimensions and classification data
used by adaptive scaling extensions like .w(context) or .rw(context).
- Annotations
Constructors
- ScreenAdaptiveData({required double screenWidth, required double screenHeight, required Orientation orientation, required double devicePixelRatio, required double blockSizeHorizontal, required double blockSizeVertical, required double safeBlockHorizontal, required double safeBlockVertical, required DeviceTypeConfig deviceTypeConfig, required FlexiBreakpoint breakpoint})
-
const
Properties
- blockSizeHorizontal → double
-
Horizontal block size (1% of screen width).
final
- blockSizeVertical → double
-
Vertical block size (1% of screen height).
final
- breakpoint → FlexiBreakpoint
-
The semantic breakpoint category for the current screen width.
final
- devicePixelRatio → double
-
The device pixel ratio (DPR) of the current display.
final
- deviceTypeConfig → DeviceTypeConfig
-
Detailed configuration and classification for the current device.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- orientation → Orientation
-
The current orientation of the device.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeBlockHorizontal → double
-
Horizontal block size excluding safe area padding.
final
- safeBlockVertical → double
-
Vertical block size excluding safe area padding.
final
- screenHeight → double
-
The current screen height in logical pixels.
final
- screenWidth → double
-
The current screen width in logical pixels.
final
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.
override