ModifierLocalProvider
Interface
Common
@JvmDefaultWithCompatibility
interface ModifierLocalProvider<T> : Modifier.Element
A Modifier that can be used to provide ModifierLocal
s 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.
Properties
Common
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.
Common
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.