getLayout method

Future<PanelLayout> getLayout()

Returns the side panel's current layout. |callback|: Returns a Promise which resolves with a PanelLayout.

Implementation

Future<PanelLayout> getLayout() async {
  var $res = await $js.chrome.sidePanel.getLayout().toDart;
  return PanelLayout.fromJS($res);
}