CompositionLocalProvider
fun <T : GenericBuilderScope<*, *>> T.CompositionLocalProvider(vararg providedValues: Pair<CompositionLocal<*>, ValueProvider<*>>, content: T.() -> Unit)
Runs content with providedValues overriding their respective CompositionLocals for the duration of the block — descendants built inside content see the new values via CompositionLocal.current; once the block returns, the previous values are restored.
Parameters
providedValues
Local-to-value overrides, built with CompositionLocal.provides.
content
Builder code run with the overrides active.