down method

bool down()

Moves to the line below, keeping the column. False on the last line.

Implementation

bool down() {
  final end = _lineEnd(_cursor);
  if (end == _chars.length) {
    return false;
  }
  final column = _cursor - _lineStart(_cursor);
  final nextStart = end + 1;
  _cursor = nextStart + _min(column, _lineEnd(nextStart) - nextStart);
  return true;
}