scrollTo function

void scrollTo(
  1. int x,
  2. int y
)

Implementation

void scrollTo(int x, int y) {
  final opts = web.ScrollToOptions();
  opts.left = x.toDouble();
  opts.top = y.toDouble();
  web.window.scrollTo(opts);
}