Contact name

Report a typo

Select the text that will be displayed on the screen when the state contact changes from Contact(number = "7231", name = "No info", isSaved = false) to Contact(number = "1234", name = "Taxi", isSaved = true)

@Composable
fun ContactElement(contact: Contact) {

    val text = remember {
        if (contact.isSaved) {
            contact.name
        } else {
            contact.number
        }
    }

    Text(text)
}
Select one option from the list
___

Create a free account to access the full topic