insert When
An extension function which inserts child component and binds it to the given state flow when the given condition is true.
Parameters
S
the state type
W
the container type
state Flow
the StateFlow instance
remove Children
remove all children of the child component
run Immediately
whether to run factory function immediately with the current state
factory
a function which re-creates the view based on the given state