moveTo method
Future
moveTo(
- covariant HtmlPageLoaderElement element,
- int? xOffset,
- int? yOffset, {
- List<
PageLoaderElement> ? dispatchTo = const <PageLoaderElement>[], - int? stepPixels,
- Duration? duration = Duration.zero,
override
Move the mouse from previous location to a location relative to element
,
offset by xOffset
and yOffset
.
If xOffset
and yOffset
are both null, automatically moves the mouse
to the center of element
.
The optional named parameters have no impact when used with Webdriver implementation.
Otherwise, mouse events are sent along the mouse path
every stepPixels
over duration
milliseconds. If any of the
dispatchTo
land on these intervals, mouse events are also sent
to that element. If stepPixels
is not provided, the mouse 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<dynamic> moveTo(
HtmlPageLoaderElement element, int? xOffset, int? yOffset,
{List<PageLoaderElement>? dispatchTo = const <PageLoaderElement>[],
int? stepPixels,
Duration? duration = Duration.zero}) =>
syncFn(() => _moveTo(element, xOffset, yOffset,
dispatchTo: dispatchTo!, stepPixels: stepPixels, duration: duration));