---
title: "ProvidableModifierLocal"
description: "[ProvidableModifierLocal]s are [ModifierLocal]s 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."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class ProvidableModifierLocal<T>(defaultFactory: () -> T) : ModifierLocal<T>(defaultFactory)
```


`ProvidableModifierLocal`s are `ModifierLocal`s 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.



