use by in jetpack compose

PHOTO EMBED

Mon Jun 21 2021 18:47:28 GMT+0000 (Coordinated Universal Time)

Saved by @swalia #by #kotlin #jetpackcompose

import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
content_copyCOPY

val items: List<TodoItem> by todoViewModel.todoItems.observeAsState(listOf())

https://github.com/waliasanchit007/FirstJetpackCompose