--- val viewModel = viewModel()---class MainViewModel : ViewModel() { private val _data = mutableStateOf("Hello") val data: State = _data fun changeValue() { _data.value = "World" }} Simple Example : Ref : https://medium.com/@jecky999/mvvm-architecture-in-android-using-kotlin-a-practical-guide-73f8de1d9c58 MVVM Architecture in Android using Kotlin: A Practical GuideIntroduc..