edit

fun edit(block: RichTextBuffer.() -> Unit)

Edits the underlying RichString state using a builder DSL. This allows you to apply or remove multiple attributes within a RichTextBuffer, as well as insert, delete, or replace text.