AtomState

constructor(state: State<T>, update: (T) -> Unit)

Parameters

T

The type of the state value.

state

The State used to retrieve the state value.

update

A function to update the state value.