setDisplayProperties method
NOTE: This is only available to ChromeOS Kiosk apps.
Updates the properties for the display specified by |id|, according to
the information provided in |info|. On failure, runtime.lastError
will be set.
|id|: The display's unique identifier.
|info|: The information about display properties that should be changed.
A property will be changed only if a new value for it is specified in
|info|.
|Returns|: Promise that resolves when the function finishes.
Implementation
Future<void> setDisplayProperties(
String id,
DisplayProperties info,
) async {
await $js.chrome.system.display
.setDisplayProperties(
id,
info.toJS,
)
.toDart;
}