bind Each
fun <S, W> W.bindEach(stateFlow: <Error class: unknown class><List<S>>, equalizer: (S, S) -> Boolean? = null, factory: <Error class: unknown class>.(S) -> Unit): W
An extension function which binds the container to the given state flow of a list of items.
Parameters
S
the state type
W
the container type
state Flow
the StateFlow instance
equalizer
optional custom equalizer function
factory
a function which re-creates the view based on the given state
fun <S, T, W> W.bindEach(stateFlow: <Error class: unknown class><S>, sub: (S) -> List<T>, equalizer: (T, T) -> Boolean? = null, factory: <Error class: unknown class>.(T) -> Unit): W
An extension function which binds the container to the given state flow using the sub flow extractor to get a list of items.
Parameters
S
the state type
T
the sub state type
W
the container type
state Flow
the StateFlow instance
sub
an extractor function for sub flow
equalizer
optional custom equalizer function
factory
a function which re-creates the view based on the given state