DeviceData class
Constructors
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
- aspectRatio ↔ double
-
Device's Aspect Ratio
getter/setter pair
- boxConstraints ↔ BoxConstraints
-
Device's BoxConstraints
getter/setter pair
- deviceType ↔ DeviceType
-
Type of Device
getter/setter pair
- height ↔ double
-
Device's Height (full screen height)
getter/setter pair
- heightSafe ↔ double
-
Device's Height excluding safe area
getter/setter pair
- isRTL ↔ bool
-
Whether the device is in RTL mode
getter/setter pair
-
Bottom navigation bar height
getter/setter pair
- orientation ↔ Orientation
-
Device's Orientation
getter/setter pair
- pixelRatio ↔ double
-
Device's Pixel Ratio
getter/setter pair
- safeAreaBottom ↔ double
-
Safe Area Bottom Padding
getter/setter pair
- safeAreaLeft ↔ double
-
Safe Area Left Padding
getter/setter pair
- safeAreaRight ↔ double
-
Safe Area Right Padding
getter/setter pair
- safeAreaTop ↔ double
-
Safe Area Top Padding
getter/setter pair
- screenType ↔ DeviceScreenType
-
Type of Screen
getter/setter pair
- statusBarHeight ↔ double
-
Status bar height
getter/setter pair
- textScaleFactor ↔ double
-
System Text Scale Factor
getter/setter pair
- width ↔ double
-
Device's Width (full screen width)
getter/setter pair
- widthSafe ↔ double
-
Device's Width excluding safe area
getter/setter pair
Static Methods
-
getDeviceType(
TargetPlatform deviceType) → DeviceType -
getScreenType(
MediaQueryData mediaQuery) → DeviceScreenType -
setDeviceData(
BuildContext context, BoxConstraints constraints, Orientation currentOrientation) → void