applyCompletion
Replaces the range matched by match with the given replacement plain text, and positions the cursor immediately after the replacement.
fun RichTextState.applyCompletion(match: AutocompleteMatch, replacement: <Error class: unknown class>)
Replaces the range matched by match with the given RichString, preserving its styling attributes and positioning the cursor immediately after the replacement.
fun RichTextState.applyCompletion(match: AutocompleteMatch, replacement: String, attributes: <Error class: unknown class>)
Replaces the range matched by match with the given replacement text, applies attributes using the specified attributes to the replacement, and positions the cursor immediately after it.