flowOf

fun <T> flowOf(vararg elements: T): Flow<T>

Creates a flow that produces values from the specified vararg-arguments.

Example of usage:

flowOf(1, 2, 3)
fun <T> flowOf(value: T): Flow<T>

Creates a flow that produces the given value.