//workflow/com.squareup.workflow1.ui.container/withEnvironment
withEnvironment¶
[jvm]
Content
@WorkflowUiExperimentalApi()
fun Screen.withEnvironment(environment: ViewEnvironment = ViewEnvironment.EMPTY): EnvironmentScreen<*>
More info
Returns an EnvironmentScreen derived from the receiver, whose EnvironmentScreen.environment includes the values in the given environment.
If the receiver is an EnvironmentScreen, uses ViewEnvironment.merge to preserve the ViewRegistry entries of both.