up method

  1. @override
Future up(
  1. MouseButton button, {
  2. PageLoaderElement? eventTarget,
  3. ClickOption? clickOption,
})
override

Release button on the mouse at its current location with clickOption. If eventTarget is specified, PageLoader will attempt to fire the corresponding mouse events on that target, otherwise it will fire the events on the target that is under the current mouse location. clickOption is only used for Html.

Implementation

@override
Future<dynamic> up(MouseButton button,
        {PageLoaderElement? eventTarget, ClickOption? clickOption}) =>
    syncFn(() async {
      if (eventTarget != null) {
        await moveTo(eventTarget as HtmlPageLoaderElement, null, null);
      }
      return _dispatchEvent('mouseup', eventTarget as HtmlPageLoaderElement?,
          button, clickOption);
    });