scrollTo method

  1. @override
Future<void> scrollTo(
  1. int x,
  2. int y
)

Set the scrolled position of this view.

The parameters x and y specify the position to scroll to in WebView pixels.

Implementation

@override
Future<void> scrollTo(int x, int y) {
  return _webView.scrollView.setContentOffset(Point<double>(
    x.toDouble(),
    y.toDouble(),
  ));
}