toObject

abstract fun <T, S, U> QueryState<QueryChunks<T, S>>.toObject(query: InfiniteQueryRef<T, S>, select: (QueryChunks<T, S>) -> U): InfiniteQueryObject<U, S>

Converts the given QueryState to InfiniteQueryObject.

Return

The converted object.

Parameters

query

The query reference.

select

A function that selects the object from the chunks.