DVScreenInfo class
Properties
-
breakpoint
→ DVBreakpoint
-
no setter
-
breakPoints
→ String
-
The spec spelling, as a plain string, matching
DVScreen.breakPoints.
no setter
-
folds
→ List<DVFold>
-
Folds and hinges through the screen, first to last. Empty on every
screen that does not fold.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
height
→ double
-
no setter
-
isAtLeastTablet
→ bool
-
True from DVBreakpoint.tablet upward. The common test: "is there room
for two columns", which a tablet answers yes to and a phone does not.
no setter
-
isDesktop
→ bool
-
no setter
-
isLandscape
→ bool
-
no setter
-
isMobile
→ bool
-
no setter
-
isPortrait
→ bool
-
no setter
-
isSpanned
→ bool
-
True when the app spans a fold.
no setter
-
isTablet
→ bool
-
no setter
-
isWide
→ bool
-
no setter
-
orientation
→ Orientation
-
final
-
posture
→ DVPosture
-
How the device is held, read from its first fold.
no setter
-
reducedMotion
→ bool
-
True when the reader has asked for less movement, either through the
platform setting or an explicit DVAccessibility.useReducedMotion.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
safeArea
→ EdgeInsets
-
Notches, home indicators, and rounded corners to keep content clear of.
final
-
safeAreaBounds
→ Map<String, double>
-
Safe areas in the map shape
DV.Platform.screen.safeAreaBounds uses.
no setter
-
shape
→ DVScreenShape
-
no setter
-
size
→ Size
-
Logical size of the surface, honouring any MediaQuery an ancestor
narrowed -- a pane or a dialog, not necessarily the whole window.
final
-
textScale
→ double
-
final
-
width
→ double
-
no setter
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
value<T>({required T mobile, T? tablet, T? desktop, T? wide})
→ T
-
Picks the value for the current breakpoint.