class TrackedRange<T>
internal constructor(internal val creatorId: Any, internal var intervalHandle: IntervalHandle)
A style applied on the text that is tracked by TextFieldBuffer, returned by TextFieldBuffer.addStyle.
TrackedRange acts as a unique handle to a specific style range. Its properties (such as the style object, its range, and expand policy) can be queried and updated using extension properties on TextFieldBuffer:
TrackedRange<*>.textRangeTrackedRange<*>.expandPolicyTrackedRange<*>.existsTrackedRange<SpanStyle>.spanStyleTrackedRange<ParagraphStyle>.paragraphStyle
All the extension properties reflect the up-to-date state of the style range. e.g. The textRange of this TrackedRange will automatically update when the text is edited. If the style's range collapses to zero length due to text edits, the style will cease to exist and exists will return false.
This object's lifecycle is bound to the TextFieldBuffer which is returned by TextFieldState.edit, InputTransformation.transformInput and OutputTransformation.transformOutput. Do not keep a reference of it.