readLine method

String? readLine()

Implementation

String? readLine() {
  if (index >= lines.length) return null;
  return lines[index++];
}