moveToScreen method

Future<void> moveToScreen(
  1. String id,
  2. int screenIndex, {
  3. bool animate = false,
  4. int? durationMs,
})

Move window to a specific screen.

Implementation

Future<void> moveToScreen(
  String id,
  int screenIndex, {
  bool animate = false,
  int? durationMs,
}) async {
  await send<void>('moveToScreen', windowId: id, params: {
    'screenIndex': screenIndex,
    'animate': animate,
    'durationMs': ?durationMs,
  });
}