Dependency

sealed class Dependency

a simple class to define dependencies (boolean deduction from another state)

Inheritors

Types

Link copied to clipboard
data object Disabled : Dependency

a dependency that always evaluates to false

Link copied to clipboard
data object Enabled : Dependency

a dependency that always evaluates to true

Link copied to clipboard
class State<T>(state: State<T>, val enabled: (T) -> Boolean) : Dependency

a dependency that derives its state from a androidx.compose.runtime.State based on a provided deduction function

Functions

Link copied to clipboard
abstract fun state(): State<Boolean>