Viewport class
Properties
-
deviceScaleFactor
→ num?
-
Specify device scale factor.
See
https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio devicePixelRatio for more info.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasTouch
→ bool?
-
Specify if the viewport supports touch events.
final
-
height
→ num
-
The page height in CSS pixels.
final
-
isLandscape
→ bool?
-
Specifies if the viewport is in landscape mode.
final
-
isMobile
→ bool?
-
Whether the
meta viewport tag is taken into account.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
width
→ num
-
The page width in CSS pixels.
final