State

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

Return

a Dependency holding the dependency logic

Parameters

state

the state that this dependency depends on

enabled

the deduction function that evaluates the deducted state of this dependency

Constructors

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

Properties

Link copied to clipboard
val enabled: (T) -> Boolean

Functions

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