dragRel method Null safety

Future<void> dragRel(
  1. {required int x,
  2. required int y,
  3. Duration? duration,
  4. MouseTween? tween,
  5. 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),
  ]);
}