moveTo abstract method
Future<void>
moveTo(
- covariant PageLoaderElement element,
- int? xOffset,
- int? yOffset, {
- List<
PageLoaderElement> ? dispatchTo, - int? stepPixels,
- Duration? duration,
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
// TODO(maxkim): Determine consistent behavior when element is null and
// how off-screen events should be handled.
Future<void> moveTo(
covariant PageLoaderElement element, int? xOffset, int? yOffset,
{List<PageLoaderElement>? dispatchTo,
int? stepPixels,
Duration? duration});