flowOf

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

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>(source)

Creates a flow that produces the given value.