getCurrent method

Future<Window> getCurrent(
  1. QueryOptions? queryOptions
)

Gets the current window.

Implementation

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