scroll abstract method

Future<VKWebAppScrollResult> scroll({
  1. required int top,
  2. int speed = 0,
})

VKWebAppScroll initiates vertical scrolling of the browser window.

Platforms: Web, Mobile Web

top - scroll offset relative to the zero coordinate of the window. For example, in order to scroll the window to the very top of the page, you must pass the value 0. speed - animation speed in milliseconds. The default is 0.

Implementation

Future<VKWebAppScrollResult> scroll({
  required int top,
  int speed = 0,
});