ScreenInfoData class

Constructors

ScreenInfoData({required Map<String, double> screenSizeInInches, required Map<String, double> screenResolution, required double dpi})
const

Properties

dpi → double
The screen's DPI (Dots Per Inch).
final
hashCode → int
Returns a hash code for the ScreenInfoData object.
no setteroverride
ppi → double
Device PPI
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screenAspectRatio → double
Returns the screen's aspect ratio.
no setter
screenDiagonalInInches → double
Returns the screen diagonal size in inches.
no setter
screenHeightInInches → double
Returns the screen height in inches.
no setter
screenHeightInPixels → double
Returns the screen height in pixels.
no setter
screenResolution → Map<String, double>
The screen resolution in pixels (width and height).
final
screenSizeInInches → Map<String, double>
The screen size in inches (width and height).
final
screenWidthInInches → double
Returns the screen width in inches.
no setter
screenWidthInPixels → double
Returns the screen width in pixels.
no setter

Methods

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
Compares two ScreenInfoData objects for equality.
override