ProvidableModifierLocal
Class
Common
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.