scrollBy function

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

Implementation

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