setWindowFrame static method
Sets the window’s frame rectangle in screen coordinates, including the title bar.
Optionally, the window frame can be animated to the new position.
Keep in mind that the y-coordinate returned is measured from the bottom of the screen.
Implementation
static Future<void> setWindowFrame(Rect frame, {bool animate = false}) async {
await _completer.future;
await _windowManipulatorMethodChannel.invokeMethod('setWindowFrame', {
'x': frame.left,
'y': frame.top,
'width': frame.width,
'height': frame.height,
'animate': animate,
});
}