rememberFormattedValueState

@Composable
fun rememberFormattedValueState(initialValue: Any? = null): FormattedValueState

Creates and remembers a FormattedValueState holding initialValue.

A later change to initialValue neither recreates the state nor moves the field; drive the field afterwards through the returned state's FormattedValueState.value.

Parameters

initialValue

the value the field starts on.