scroll method

void scroll(
  1. Scroll unit,
  2. ScrollOptions dir, [
  3. num? dist
])

Scrolling function used by primarily by #commandHandler's CommandHandler#doKeyDown. @param {string} unit A string representing the unit of the scroll operation. Can only be 'pixel', 'line', 'page', or 'document'. @param {string} dir The direction of the scroll operation. Can only be 'up', 'down', 'left', or 'right'. @param {number=} dist An optional distance multiplier, for multiple pixels, lines, or pages. The default value is 1. This argument is ignored when the unit is 'document'. @see #scrollToRect @see #centerRect

Implementation

void scroll(
  _i3.Scroll unit,
  _i3.ScrollOptions dir, [
  _i2.num? dist,
]) {
  _i4.callMethod(
    this,
    'scroll',
    [
      unit.name,
      dir.name,
      dist ?? _i5.undefined,
    ],
  );
}