lineAt method

String lineAt(
  1. int i
)

Returns the text of the line at the given index.

Implementation

String lineAt(int i) {
  if (i < 0 || i >= lineCount) return '';
  return _document.lineAt(i);
}