Display class
Provides information about of a logical display.
A logical display does not necessarily represent a particular physical display device such as the built-in screen or an external monitor. The contents of a logical display may be presented on one or more physical displays according to the devices that are currently attached and whether mirroring has been enabled. Use the following methods to query the real display area: [Display.displayId], [Display.flag], [Display.rotation], [Display.name]
Properties
- displayId ↔ int?
-
Gets the display id.
getter/setter pair
- flag ↔ int?
-
Returns a combination of flags that describe the capabilities of the display.
@return The display flags.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String?
-
Gets the name of the display.
getter/setter pair
- rotation ↔ int?
-
Returns the rotation of the screen from its "natural" orientation.
The returned value may be ROTATION_0
(no rotation), ROTATION_90, ROTATION_180, or ROTATION_270. For
example, if a device has a naturally tall screen, and the user has
turned it on its side to go into a landscape orientation, the value
returned here may be either ROTATION_90 or ROTATION_270 depending on
the direction it was turned. The angle is the rotation of the drawn
graphics on the screen, which is the opposite direction of the physical
rotation of the device. For example, if the device is rotated 90
degrees counter-clockwise, to compensate rendering will be rotated by
90 degrees clockwise and thus the returned value here will be
ROTATION_90.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 -
The equality operator.
inherited