moveTo method

  1. @override
Future<void> moveTo(
  1. covariant PageLoaderElement element,
  2. int? xOffset,
  3. int? yOffset, {
  4. List<PageLoaderElement>? dispatchTo,
  5. int? stepPixels,
  6. Duration? duration,
})
override

Move the pointer from previous location to a location relative to element offset by xOffset and yOffset.

If xOffset and yOffset are both null, automatically moves the pointer to the center of element.

The optional named parameters have no impact when used with Webdriver implementation.

Otherwise, pointer events are sent along the pointer path every stepPixels over duration milliseconds. If any of the dispatchTo land on these intervals, pointer events are also sent to that element. If stepPixels is not provided, the pointer movement instantaneously moves from its current position to the final position with no intermediate steps. If provided, stepPixels must be a value greater than zero.

Implementation

@override
Future<void> moveTo(PageLoaderElement element, int? xOffset, int? yOffset,
    {List<PageLoaderElement>? dispatchTo,
    int? stepPixels,
    Duration? duration}) async {
  throw 'Not yet implemented';
}