with Style
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.
Return
result of the block
Parameters
style
SpanStyle to be applied
block
function to be executed