KotPreferences
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
KotPreferences
compose
/
com.michaelflisar.kotpreferences.compose
/
collectAsStateNotNull
collect
As
State
Not
Null
@
Composable
fun
<
T
>
StorageSetting
<
T
>
.
collectAsStateNotNull
(
initialValue
:
T
=
getValueNotNull()
)
:
State
<
T
>
@
Composable
fun
<
T
,
X
>
StorageSetting
<
T
>
.
collectAsStateNotNull
(
initialValue
:
T
=
getValueNotNull()
,
mapper
:
(
T
)
->
X
)
:
State
<
X
>