toVisual

abstract fun toVisual(sourceTextRange: TextRange): TextRange?

Compute the rendered text range corresponding to the source text range.

Return

Range of the rendered text in a UI component. Null, if the source is not rendered.