🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

ModifierLocalProvider

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.

Source set: Common
public interface ModifierLocalProvider<T> : Modifier.Element

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.

Properties

key

Source set: Common
public 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

Source set: Common
public 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.