get method

Future<Window> get(
  1. int windowId,
  2. QueryOptions? queryOptions
)

Gets details about a window.

Implementation

Future<Window> get(
  int windowId,
  QueryOptions? queryOptions,
) async {
  var $res = await promiseToFuture<$js.Window>($js.chrome.windows.get(
    windowId,
    queryOptions?.toJS,
  ));
  return Window.fromJS($res);
}