getTextAfterSelection

Function

Common
fun TextFieldValue.getTextAfterSelection(maxChars: Int): AnnotatedString

Returns the text after the selection.

Parameters

maxCharsmaximum number of characters (exclusive) after the maximum value in TextFieldValue.selection.