DisplayProperties constructor
DisplayProperties({})
Implementation
DisplayProperties({
/// 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.
bool? isUnified,
/// 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.
String? mirroringSourceId,
/// 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).
bool? isPrimary,
/// 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.
Insets? overscan,
/// 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.
int? rotation,
/// 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.
int? boundsOriginx,
/// If set, updates the display's logical bounds origin along the y-axis.
/// See documentation for [boundsOriginX] parameter.
int? boundsOriginy,
/// 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.
DisplayMode? displayMode,
/// 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.
double? displayZoomFactor,
}) : _wrapped = $js.DisplayProperties(
isUnified: isUnified,
mirroringSourceId: mirroringSourceId,
isPrimary: isPrimary,
overscan: overscan?.toJS,
rotation: rotation,
boundsOriginX: boundsOriginx,
boundsOriginY: boundsOriginy,
displayMode: displayMode?.toJS,
displayZoomFactor: displayZoomFactor,
);