Advertisement
Cabaca

Untitled

Aug 14th, 2024
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.24 KB | None | 0 0
  1. class TaskViewModel : ViewModel() {
  2.     @NativeCoroutines
  3.     val _tasks = MutableStateFlow<List<Models.Task>>(viewModelScope, emptyList())
  4.  
  5.     @NativeCoroutinesState
  6.     val tasks: StateFlow<List<Models.Task>> get() = _tasks
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement