Display class

Display is information about the display.

Constructors

Display({required String resolution, required String density, required String screenSize, required String refreshRate, required String hdrCapabilities, required String brightnessLevel, required String screenTimeout, required String orientation})
Display.fromJson(String source)
fromJson creates a Display object from a JSON object.
factory
Display.fromMap(Map<String, dynamic> map)
fromMap creates a Display object from a map.
factory

Properties

brightnessLevel String
brightnessLevel is the current brightness level of the display.
getter/setter pair
density String
density is the density of the display.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
hdrCapabilities String
hdrCapabilities is the hdr capability of the display.
getter/setter pair
orientation String
orientation is the orientation of the display.
getter/setter pair
refreshRate String
refreshRate is the refresh rate of the display in Hz.
getter/setter pair
resolution String
resolution is the resolution of the display.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenSize String
screenSize is the screen size of the display.
getter/setter pair
screenTimeout String
screenTimeout is the screen timeout of the display in milliseconds.
getter/setter pair

Methods

copyWith({String? resolution, String? density, String? screenSize, String? refreshRate, String? hdrCapabilities, String? brightnessLevel, String? screenTimeout, String? orientation}) Display
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toJson creates a JSON object from the current Display object.
toMap() Map<String, dynamic>
toMap creates a map from the current Display object.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override