scrollTo method

void scrollTo(
  1. num? x,
  2. num? y
)

Scroll the editor to a given (pixel) position. Both arguments may be left as null or undefined to have no effect.

Implementation

void scrollTo(num? x, num? y) => callArgs('scrollTo', [x, y]);