next property

String? next

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

Implementation

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