int getLineStartOffset(int lineIndex) { final start = _lineStartByIndex(lineIndex); return start == -1 ? 0 : start; }