getDisplayLayout method

Future<List<DisplayLayout>> getDisplayLayout()

NOTE: This is only available to ChromeOS Kiosk apps. Requests the layout info for all displays. |Returns|: Promise that resolves with the results.

Implementation

Future<List<DisplayLayout>> getDisplayLayout() async {
  var $res = await $js.chrome.system.display.getDisplayLayout().toDart;
  return $res.toDart
      .cast<$js.DisplayLayout>()
      .map((e) => DisplayLayout.fromJS(e))
      .toList();
}