simple login screen with simple viewmodel's logic
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package dev.meloda.overseerr.ext
|
||||
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.update
|
||||
|
||||
fun <T> MutableStateFlow<T>.setValue(function: (T) -> T) {
|
||||
val newValue = function(value)
|
||||
update { newValue }
|
||||
}
|
||||
Reference in New Issue
Block a user