DisplayMetricsData class

class that contains display metrics

Constructors

DisplayMetricsData({required List<ExtendedPhysicalDisplayData> displays})
class that contains display metrics
const

Properties

devicePixelRatio double
MediaQuery's devicePixelRatio
no setter
diagonal double
Device's primary screen diagonal in inches
no setter
displays List<ExtendedPhysicalDisplayData>
List of all available displays metrics
final
hashCode int
The hash code for this object.
no setteroverride
inchesToLogicalPixelRatio double
The number of logical pixels on the device's primary screen that corresponds to one inch
no setter
physicalSize Size
Device's primary screen physical size in inches
no setter
ppi double
Device's primary screen pixels per inch (PPI)
no setter
primaryDisplay ExtendedPhysicalDisplayData
Display metrics data of promary display
no setter
resolution Size
Device's primary screen resolution in real pixels
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({List<ExtendedPhysicalDisplayData>? displays}) DisplayMetricsData
Method to create updated copy of DisplayMetricsData
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.
override