private fun userPhoneUpdated(number: String) { _uiState.value = uiState.value.copy( userPhone = InputWrapper(value = number) ) }
This function saves and updates the UIState with the user provided input for Phone number