moveTo method Null safety
- {required int x,
- required int y,
- Duration? duration,
- MouseTween? tween}
Move mouse to a certain position ,
returns Future<void>
Implementation
static Future<void> moveTo({
required int x,
required int y,
Duration? duration,
MouseTween? tween,
}) async {
await Process.run('python3', [
mPath,
'move_to',
x.toString(),
y.toString(),
duration != null ? duration.inSeconds.toString() : '0',
_mapTween(tween),
]);
}