setWindowBounds method
Set position and/or size of the browser window.
windowId
Browser window id.
bounds
New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined
with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.
Implementation
Future<void> setWindowBounds(WindowID windowId, Bounds bounds) async {
await _client.send('Browser.setWindowBounds', {
'windowId': windowId,
'bounds': bounds,
});
}