ProvidableModifierLocal
-
Cmn
class ProvidableModifierLocal<T : Any?> : ModifierLocal
| kotlin.Any | ||
| ↳ | androidx.compose.ui.modifier.ModifierLocal | |
| ↳ | androidx.compose.ui.modifier.ProvidableModifierLocal |
ProvidableModifierLocals are ModifierLocals that can be used to provide values using a ModifierLocalProvider.
When you create an instance of a ProvidableModifierLocal, and want to prevent users of your library from providing new values but want to allow the values to be consumed, expose a ModifierLocal instead.
Summary
Public constructors |
|
|---|---|
<T : Any?> ProvidableModifierLocal(defaultFactory: () -> T) |
Cmn
|