withStyle

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

See also