dragRel method Null safety
- {required int x,
- required int y,
- Duration? duration,
- MouseTween? tween,
- MouseButton? button}
Drag mouse cursor relative to the current mouse position ,
returns Future<void>
Implementation
static Future<void> dragRel({
required int x,
required int y,
Duration? duration,
MouseTween? tween,
MouseButton? button,
}) async {
await Process.run('python3', [
mPath,
'drag_rel',
x.toString(),
y.toString(),
duration != null ? duration.inSeconds.toString() : '0',
_mapTween(tween),
_mapButton(button),
]);
}