Package-level declarations

Types

Link copied to clipboard
class InitialValueFlow<T : Any>(flow: Flow<T>) : Flow<T>

A Flow implementation that emits the current value of a widget immediately upon collection.

Functions

Link copied to clipboard
fun <T : Any> Flow<T>.asInitialValueFlow(initialValue: () -> T): InitialValueFlow<T>

Converts a Flow to an InitialValueFlow, taking an initialValue lambda for computing the initial value.

Link copied to clipboard