scrollTo method
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(),
));
}