asDependency

fun <T> StorageSetting<T>.asDependency(enabled: (T) -> Boolean): Dependency.State<T>

simple extension function to plug in a setting as a dependency

Parameters

enabled

convert the value to a boolean to determine if the setting is enabled