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) async {
if (jsBridge.hasReady) {
await jsBridge.evalJavaScript('window.scrollTo(x, y)');
}
}