setDisplayLayout method
Set the layout for all displays. Any display not included will use the
default layout. If a layout would overlap or be otherwise invalid it
will be adjusted to a valid layout. After layout is resolved, an
onDisplayChanged event will be triggered.
NOTE: This is only available to Chrome OS Kiosk apps and Web UI.
|layouts|: The layout information, required for all displays except
the primary display.
|callback|: Empty function called when the function finishes. To find out
whether the function succeeded, runtime.lastError
should be
queried.
Implementation
Future<void> setDisplayLayout(List<DisplayLayout> layouts) async {
await promiseToFuture<void>($js.chrome.system.display
.setDisplayLayout(layouts.toJSArray((e) => e.toJS)));
}