Start native apps faster with the Composables CLI ->
Function

cutWithResult

The method for cutting text.

cutWithResult

Source set: Common
fun cutWithResult(): AnnotatedString?

The method for cutting text.

It returns the text that was cut and it is expected to be copied (stored in a Clipboard). This overload covers the case when handling a 'cut' ClipboardEvent.