Quantcast
Channel: Y.A.M の 雑記帳
Viewing all articles
Browse latest Browse all 415

mutableStateOf() の 3 つの使い方

$
0
0
val mutableState: MutableState<String> = mutableStateOf("") val v = mutableState.value mutableState.value = "1"

destructuring declaration val (value: String, setValue: (String) -> Unit) = mutableStateOf("") val v = value setValue("1")

delegate var value: String by mutableStateOf("") val v = value value = "1"


Viewing all articles
Browse latest Browse all 415

Trending Articles