setPosition method
Set window position.
The anchor specifies which point of the window is placed at position.
For example, Anchor.center centers the window at position.
Implementation
Future<void> setPosition(
String id,
Offset position, {
String? anchor,
bool animate = false,
int? durationMs,
String? curve,
}) async {
await send<void>('setPosition', windowId: id, params: {
'x': position.dx,
'y': position.dy,
'anchor': ?anchor,
'animate': animate,
'durationMs': ?durationMs,
'curve': ?curve,
});
}