Created
October 17, 2022 13:36
-
-
Save ch8n/3ed690444cfb4639a61338ea030e1b6c to your computer and use it in GitHub Desktop.
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