AtomState

class AtomState<T>(state: State<T>, update: (T) -> Unit) : MutableState<T>

MutableState for handling the state values of Atom managed by AtomStore.

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.

Constructors

Link copied to clipboard
constructor(state: State<T>, update: (T) -> Unit)

Properties

Link copied to clipboard
open override var value: T

Functions

Link copied to clipboard
open operator override fun component1(): T
Link copied to clipboard
open operator override fun component2(): (T) -> Unit