update method

Future<Window> update(
  1. int windowId,
  2. UpdateInfo updateInfo
)

Updates the properties of a window. Specify only the properties that to be changed; unspecified properties are unchanged.

Implementation

Future<Window> update(
  int windowId,
  UpdateInfo updateInfo,
) async {
  var $res = await promiseToFuture<$js.Window>($js.chrome.windows.update(
    windowId,
    updateInfo.toJS,
  ));
  return Window.fromJS($res);
}