Builder
Builder class for AnnotatedString. Enables construction of an AnnotatedString using methods such as append and addStyle.
This class implements Appendable and can be used with other APIs that don't know about AnnotatedStrings:
Parameters
capacity
initial capacity for the internal char buffer
Constructors
Link copied to clipboard
Create an Builder instance using the given AnnotatedString.
Functions
Link copied to clipboard
Constructs an AnnotatedString based on the configurations applied to the Builder.
Link copied to clipboard
inline fun <R : Any> AnnotatedString.Builder.withStyle(style: SpanStyle, block: AnnotatedString.Builder.() -> R): R
Pushes style to the AnnotatedString.Builder, executes block and then pops the style.