toggle menu
hakate
3.3.1
common
switch theme
search in API
hakate
/
net.kigawa.hakate.api.state
/
State
State
interface
State
<
T
>
Inheritors
MutableState
Members
Members & Extensions
Properties
state
Context
Link copied to clipboard
abstract
val
stateContext
:
StateContext
Functions
child
Link copied to clipboard
abstract
fun
<
R
>
child
(
block
:
(
T
)
->
R
)
:
State
<
R
>
abstract
fun
<
R
>
child
(
defaultValue
:
R
,
block
:
suspend
StateContext
.
(
T
,
prev
:
R
)
->
R
)
:
State
<
R
>
open
fun
<
R
>
child
(
defaultValue
:
(
T
)
->
R
,
block
:
suspend
StateContext
.
(
T
,
prev
:
R
)
->
R
)
:
State
<
R
>
collect
Link copied to clipboard
abstract
fun
collect
(
context
:
StateContext
,
block
:
suspend
StateContext
.
(
value
:
T
)
->
Unit
)
:
Job
open
fun
<
R
>
collect
(
context
:
StateContext
,
defaultValue
:
R
,
block
:
suspend
StateContext
.
(
value
:
T
,
prev
:
R
)
->
R
)
:
Job
current
Value
Link copied to clipboard
abstract
fun
currentValue
(
)
:
T
merge
Link copied to clipboard
abstract
fun
<
U
,
R
>
merge
(
state
:
State
<
U
>
,
block
:
(
first
:
T
,
second
:
U
)
->
R
)
:
State
<
R
>
merge
Link copied to clipboard
fun
<
T
,
U
,
V
>
State
<
MultiValue2
<
T
,
U
>
>
.
merge
(
state3
:
State
<
V
>
)
:
State
<
MultiValue3
<
T
,
U
,
V
>
>