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"
0 件のコメント:
コメントを投稿