scrollDown method

void scrollDown(
  1. int lines
)

Implementation

void scrollDown(int lines) {
  _invalidateCurrentLine();
  for (var i = absoluteMarginBottom; i >= absoluteMarginTop; i--) {
    if (i >= absoluteMarginTop + lines) {
      this.lines.move(i - lines, i);
    } else {
      this.lines[i] = _newEmptyLine();
    }
  }
}