textRange

fun textRange(start: Int, endInclusive: Int): String

The text of the inclusive flattened range start..endInclusive, with line breaks as \n and block breaks as \n\n (matching plainText).