read and write from state delegate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dont forget these imports | |
import androidx.compose.runtime.getValue | |
import androidx.compose.runtime.setValue | |
// for read only from state | |
val count by mutableStateOf(0) | |
// for read and write on state | |
var count by mutableStateOf(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment