ExtendedPhysicalDisplayData class

class that contains display metrics with devicePixelRatio

Constructors

ExtendedPhysicalDisplayData({required Size physicalSize, required Size resolution, required bool isPrimary, required double devicePixelRatio})
class that contains display metrics with devicePixelRatio
const
ExtendedPhysicalDisplayData.fromDisplayData(PhysicalDisplayData data, {required double devicePixelRatio})
creates ExtendedPhysicalDisplayData from PhysicalDisplayData
factory

Properties

devicePixelRatio double
MediaQuery's devicePixelRatio;
final
diagonal double
Device's screen diagonal in inches
no setterinherited
hashCode int
The hash code for this object.
no setter
inchesToLogicalPixelRatio double
The number of logical pixels on the device's screen that corresponds to one inch
no setter
isPrimary bool
Will be true if this display is primary
finalinherited
physicalSize Size
Device's screen physical size in inches
finalinherited
ppi double
Device's screen pixels per inch (PPI)
no setterinherited
resolution Size
Device's screen resolution in real pixels
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Size? physicalSize, Size? resolution, bool? isPrimary, double? devicePixelRatio}) ExtendedPhysicalDisplayData
method to create updated copy of ExtendedPhysicalDisplayData
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.