asMutableTextFieldValueState
fun TextController.asMutableTextFieldValueState(initialSelection: TextRange = TextRange(textValue.length)): MutableState<TextFieldValue>
Exposes the textValue of a TextController as a remembered MutableState of TextFieldValue, suitable for use from @Composable
functions.
Usage:
```
var fooText by fooTextController.asMutableTextFieldValueState()
BasicTextField(
value = fooText,
onValueChange = { fooText = it },
)
```
Content copied to clipboard
Parameters
initialSelection
The initial range of selection. If TextRange.start equals TextRange.end, then nothing is selected, and the cursor is placed at TextRange.start. By default, the cursor will be placed at the end of the text.