insertWhen
An extension function which inserts child component and binds it to the given state flow when the given condition is true.
Parameters
the state type
the container type
the StateFlow instance
the condition predicate
remove all children of the child component
whether to run factory function immediately with the current state
a function which re-creates the view based on the given state
An extension function which inserts child component and binds it to the given state flow using the sub flow extractor when the given condition is true.
Parameters
the state type
the sub state type
the container type
the StateFlow instance
an extractor function for sub flow
the condition predicate
remove all children of the child component
whether to run factory function immediately with the current state
a function which re-creates the view based on the given state