Kotlin, Android App Development.
theme = newTheme // Apply theme changes here } } With property delegation, you can achieve the same functionality with much less code: import kotlin.properties.Delegates class UserSettings { var theme: String by Delegates.observable("Light") { _, _, newTheme -> // Apply theme changes here } } In