androidx.compose.ui.modifier
ModifierLocalProvider
Interface · from org.jetbrains.compose.ui:ui:1.12.2
No hand-written docs yet.
A Modifier that can be used to provide ModifierLocals that can be read by other modifiers to the right of this modifier, or modifiers that are children of the layout node that this modifier is attached to.
interface ModifierLocalProvider<T> : Modifier.Element
Is a
Properties
key
val key: ProvidableModifierLocal<T>
Each ModifierLocalProvider stores a ModifierLocal instance that can be used as a key by a ModifierLocalConsumer to read the provided value.
value
val value: T
The provided value, that can be read by modifiers on the right of this modifier, and modifiers added to children of the composable using this modifier.
Library docs
A Modifier that can be used to provide ModifierLocals that can be read by other modifiers to
the right of this modifier, or modifiers that are children of the layout node that this modifier
is attached to.