editAttributes

fun editAttributes(range: IntRange = 0 until textLength, editAction: AttributeEditScope.() -> Unit)

Applies a set of attribute mutations to the specified range using a DSL builder.