next property

Line? get next

Gets the line after the current one or null if there is none.

Implementation

Line? get next {
  // Don't read past the end.
  if (_pos >= lines.length - 1) return null;
  return lines[_pos + 1];
}