toList

suspend fun <T> Flow<T>.toList(
    destination: MutableList<T> = ArrayList()
): List<T>
(source)

Collects given flow into a destination