setBounds method
Set window bounds (position + size).
Implementation
Future<void> setBounds(
String id,
Rect bounds, {
bool animate = false,
int? durationMs,
String? curve,
}) async {
await send<void>('setBounds', windowId: id, params: {
'x': bounds.left,
'y': bounds.top,
'width': bounds.width,
'height': bounds.height,
'animate': animate,
'durationMs': ?durationMs,
'curve': ?curve,
});
}