setDisplayLayout method

Future<void> setDisplayLayout(
  1. List<DisplayLayout> layouts
)

NOTE: This is only available to ChromeOS Kiosk apps. 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. |layouts|: The layout information, required for all displays except the primary display. |Returns|: Promise that resolves when the function finishes.

Implementation

Future<void> setDisplayLayout(List<DisplayLayout> layouts) async {
  await $js.chrome.system.display
      .setDisplayLayout(layouts.toJSArray((e) => e.toJS))
      .toDart;
}