Get BiDi segments for a specific line
List<BiDiSegment> getBiDiSegmentsForLine(int lineIndex) { return _rope.getBidiSegmentsForLine(lineIndex: BigInt.from(lineIndex)); }