List<List<int>> getRtlSegments() { if (!_containsRtl) { return []; } return BidirectionalText.findRtlSegments(toString()); }