moveTo method Null safety

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