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 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 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));