AndroidDisplayMetrics class
Details for the current display
See: https://developer.android.com/reference/android/util/DisplayMetrics
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- heightInches → double
-
The exact physical display height in inches.
read-only
- heightPx → double
-
Gets the absolute height in pixels of the largest region of the display accessible to an app
in the current system state, without subtracting any window decor or applying scaling factors.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- sizeInches → double
-
The exact physical size in inches measured diagonally across the display.
read-only
- widthInches → double
-
The exact physical display width in inches.
read-only
- widthPx → double
-
Gets the absolute width in pixels of the largest region of the display accessible to an app
in the current system state, without subtracting any window decor or applying scaling factors.
final
- xDpi → double
-
The exact physical pixels per inch of the screen in the X dimension.
final
- yDpi → double
-
The exact physical pixels per inch of the screen in the Y dimension.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Serializes AndroidDisplayMetrics to map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited