DisplayUnitInfo class

Constructors

DisplayUnitInfo({required String id, required String name, Edid? edid, required String mirroringSourceId, required List<String> mirroringDestinationIds, required bool isPrimary, required bool isInternal, required bool isEnabled, required ActiveState activeState, required bool isUnified, bool? isAutoRotationAllowed, required double dpiX, required double dpiY, required int rotation, required Bounds bounds, required Insets overscan, required Bounds workArea, required List<DisplayMode> modes, required bool hasTouchSupport, required bool hasAccelerometerSupport, required List<double> availableDisplayZoomFactors, required double displayZoomFactor})
DisplayUnitInfo.fromJS(DisplayUnitInfo _wrapped)

Properties

activeState ActiveState
Active if the display is detected and used by the system.
getter/setter pair
availableDisplayZoomFactors List<double>
A list of zoom factor values that can be set for the display.
getter/setter pair
bounds Bounds
The display's logical bounds.
getter/setter pair
displayZoomFactor double
The ratio between the display's current and default zoom. For example, value 1 is equivalent to 100% zoom, and value 1.5 is equivalent to 150% zoom.
getter/setter pair
dpiX double
The number of pixels per inch along the x-axis.
getter/setter pair
dpiY double
The number of pixels per inch along the y-axis.
getter/setter pair
edid Edid?
NOTE: This is only available to Chrome OS Kiosk apps and Web UI.
getter/setter pair
hasAccelerometerSupport bool
True if this display has an accelerometer associated with it. Provided for ChromeOS Settings UI only. TODO(stevenjb): Remove when Settings switches to a mojo API. NOTE: The name of this may change.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasTouchSupport bool
True if this display has a touch input device associated with it.
getter/setter pair
id String
The unique identifier of the display.
getter/setter pair
isAutoRotationAllowed bool?
True when the auto-rotation is allowed. It happens when the device is in a tablet physical state or kSupportsClamshellAutoRotation is set. Provided for ChromeOS Settings UI only. TODO(stevenjb): Remove when Settings switches to a mojo API.
getter/setter pair
isEnabled bool
True if this display is enabled.
getter/setter pair
isInternal bool
True if this is an internal display.
getter/setter pair
isPrimary bool
True if this is the primary display.
getter/setter pair
isUnified bool
True for all displays when in unified desktop mode. See documentation for enableUnifiedDesktop.
getter/setter pair
mirroringDestinationIds List<String>
Chrome OS only. Identifiers of the displays to which the source display is being mirrored. Empty if no displays are being mirrored. This will be set to the same value for all displays. This must not include |mirroringSourceId|.
getter/setter pair
mirroringSourceId String
Chrome OS only. Identifier of the display that is being mirrored if mirroring is enabled, otherwise empty. This will be set for all displays (including the display being mirrored).
getter/setter pair
modes List<DisplayMode>
The list of available display modes. The current mode will have isSelected=true. Only available on Chrome OS. Will be set to an empty array on other platforms.
getter/setter pair
name String
The user-friendly name (e.g. "HP LCD monitor").
getter/setter pair
overscan Insets
The display's insets within its screen's bounds. Currently exposed only on ChromeOS. Will be set to empty insets on other platforms.
getter/setter pair
rotation int
The display's clockwise rotation in degrees relative to the vertical position. Currently exposed only on ChromeOS. Will be set to 0 on other platforms. A value of -1 will be interpreted as auto-rotate when the device is in a physical tablet state.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toJS → DisplayUnitInfo
no setter
workArea Bounds
The usable work area of the display within the display bounds. The work area excludes areas of the display reserved for OS, for example taskbar and launcher.
getter/setter pair

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