buildOudsAnnotatedHeadingText
fun buildOudsAnnotatedHeadingText(builder: OudsAnnotatedHeadingText.Builder.() -> Unit): OudsAnnotatedHeadingText
Creates an OudsAnnotatedHeadingText using a builder DSL.
Example:
buildOudsAnnotatedHeadingText {
append("This is ")
withColor(OudsTheme.colorScheme.content.brandSecondary) {
append("brand secondary text")
}
}Content copied to clipboard
Return
The constructed annotated heading text.
Parameters
builder
Lambda with receiver for building the annotated string.