MONITOR_DPI_TYPE class Null safety Enum

Identifies the dots per inch (dpi) setting for a monitor.

Constructors

MONITOR_DPI_TYPE()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

MDT_ANGULAR_DPI → const int
The angular DPI. This DPI ensures rendering at a compliant angular resolution on the screen. This does not include the scale factor set by the user for this specific display.
1
MDT_DEFAULT → const int
The default DPI setting for a monitor is MDT_EFFECTIVE_DPI.
MDT_EFFECTIVE_DPI
MDT_EFFECTIVE_DPI → const int
The effective DPI. This value should be used when determining the correct scale factor for scaling UI elements. This incorporates the scale factor set by the user for this specific display.
0
MDT_RAW_DPI → const int
The raw DPI. This value is the linear DPI of the screen as measured on the screen itself. Use this value when you want to read the pixel density and not the recommended scaling setting. This does not include the scale factor set by the user for this specific display and is not guaranteed to be a supported DPI value.
2