dragFromTo method

Future<void> dragFromTo({
  1. int? xStart,
  2. int? yStart,
  3. int? xEnd,
  4. int? yEnd,
  5. bool absolute = false,
})

Drag the mouse. From xStart and yStart coordinates To xEnd and yEnd coordinates e.g. await driver.mouse.dragFromTo(xStart: 0, yStart: 0, xEnd: 0, yEnd: 800);

Implementation

Future<void> dragFromTo(
    {int? xStart,
      int? yStart,
      int? xEnd,
      int? yEnd,
      bool absolute = false}) =>
    _client.send(
        _handler.mouse.buildDragFromToRequest(
            xStart: xStart,
            yStart: yStart,
            xEnd: xEnd,
            yEnd: yEnd,
            absolute: absolute),
        _handler.mouse.parseDragFromToResponse);