scrollBy method

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

Move the scrolled position of this view.

The parameters x and y specify the amount of WebView pixels to scroll by.

Implementation

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