bindEach

fun <S, W : SimplePanel> W.bindEach(stateFlow: StateFlow<List<S>>, equalizer: (S, S) -> Boolean? = null, factory: SimplePanel.(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

stateFlow

the StateFlow instance

equalizer

optional custom equalizer function

factory

a function which re-creates the view based on the given state