toggle menu
hakate
3.3.1
common
switch theme
search in API
hakate
/
net.kigawa.hakate.impl.state
/
StateImpl
State
Impl
class
StateImpl
<
T
>
(
defaultValue
:
T
,
val
stateContext
:
StateContext
)
:
MutableState
<
T
>
Members
Members & Extensions
Constructors
State
Impl
Link copied to clipboard
constructor
(
defaultValue
:
T
,
stateContext
:
StateContext
)
Properties
state
Context
Link copied to clipboard
open
override
val
stateContext
:
StateContext
Functions
child
Link copied to clipboard
open
fun
<
R
>
child
(
defaultValue
:
(
T
)
->
R
,
block
:
suspend
StateContext
.
(
T
,
prev
:
R
)
->
R
)
:
State
<
R
>
open
override
fun
<
R
>
child
(
block
:
(
T
)
->
R
)
:
State
<
R
>
open
override
fun
<
R
>
child
(
defaultValue
:
R
,
block
:
suspend
StateContext
.
(
T
,
R
)
->
R
)
:
State
<
R
>
collect
Link copied to clipboard
open
fun
<
R
>
collect
(
context
:
StateContext
,
defaultValue
:
R
,
block
:
suspend
StateContext
.
(
value
:
T
,
prev
:
R
)
->
R
)
:
Job
open
override
fun
collect
(
context
:
StateContext
,
block
:
suspend
StateContext
.
(
T
)
->
Unit
)
:
Job
current
Value
Link copied to clipboard
open
override
fun
currentValue
(
)
:
T
merge
Link copied to clipboard
open
override
fun
<
U
,
R
>
merge
(
state
:
State
<
U
>
,
block
:
(
T
,
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
>
>
set
Link copied to clipboard
open
override
fun
set
(
value
:
T
)