AndroidDisplayMetrics class

Properties

hashCode int
The hash code for this object.
no setterinherited
heightInches double
The exact physical display height in inches.
no setter
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.
no setterinherited
sizeInches double
The exact physical size in inches measured diagonally across the display.
no setter
widthInches double
The exact physical display width in inches.
no setter
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