updateEmail

fun ProfileScreenViewModel.updateEmail(newEmail: String, resetStateTimeOut: Long = defaultResetStateTimeOut)

A utility method that is used to update the email of the currently logged-in user with the newEmail. This extension method is a shorthand for the ProfileScreenViewModel.updateAttributeForCurrentUser. It removes the need for specifying the 'updateAttribute' param of the ProfileScreenViewModel.updateAttributeForCurrentUser method.