DisplayProperties class

Constructors

DisplayProperties({bool? isUnified, String? mirroringSourceId, bool? isPrimary, Insets? overscan, int? rotation, int? boundsOriginx, int? boundsOriginy, DisplayMode? displayMode, double? displayZoomFactor})
DisplayProperties.fromJS(DisplayProperties _wrapped)

Properties

boundsOriginx int?
If set, updates the display's logical bounds origin along the x-axis. Applied together with boundsOriginY. Defaults to the current value if not set and boundsOriginY is set. Note that when updating the display origin, some constraints will be applied, so the final bounds origin may be different than the one set. The final bounds can be retrieved using getInfo. The bounds origin cannot be changed on the primary display.
getter/setter pair
boundsOriginy int?
If set, updates the display's logical bounds origin along the y-axis. See documentation for boundsOriginX parameter.
getter/setter pair
displayMode DisplayMode?
If set, updates the display mode to the mode matching this value. If other parameters are invalid, this will not be applied. If the display mode is invalid, it will not be applied and an error will be set, but other properties will still be applied.
getter/setter pair
displayZoomFactor double?
If set, updates the zoom associated with the display. This zoom performs re-layout and repaint thus resulting in a better quality zoom than just performing a pixel by pixel stretch enlargement.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isPrimary bool?
If set to true, makes the display primary. No-op if set to false. Note: If set, the display is considered primary for all other properties (i.e. isUnified may be set and bounds origin may not).
getter/setter pair
isUnified bool?
Chrome OS only. If set to true, changes the display mode to unified desktop (see enableUnifiedDesktop for details). If set to false, unified desktop mode will be disabled. This is only valid for the primary display. If provided, mirroringSourceId must not be provided and other properties will be ignored. This is has no effect if not provided.
getter/setter pair
mirroringSourceId String?
Chrome OS only. If set and not empty, enables mirroring for this display only. Otherwise disables mirroring for all displays. This value should indicate the id of the source display to mirror, which must not be the same as the id passed to setDisplayProperties. If set, no other property may be set.
getter/setter pair
overscan Insets?
If set, sets the display's overscan insets to the provided values. Note that overscan values may not be negative or larger than a half of the screen's size. Overscan cannot be changed on the internal monitor.
getter/setter pair
rotation int?
If set, updates the display's rotation. Legal values are 0, 90, 180, 270. The rotation is set clockwise, relative to the display's vertical position.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toJS DisplayProperties
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
The equality operator.
inherited