toggle menu
core
common
switch theme
search in API
core
/
com.erolc.mrouter.utils
/
updateValue
update
Value
@
Composable
fun
<
T
>
updateValue
(
preValue
:
T
,
currentValue
:
T
,
nextValue
:
T
,
sharing
:
Sharing
.
(
preValue
:
T
,
currentValue
:
T
)
->
T
=
{ _, current -> current }
,
anim
:
@
Composable
(
function
:
(
ShareState
)
->
T
)
->
State
<
T
>
)
:
State
<
T
>
Parameters
pre
Value
上一页面的值
current
Value
当前页面的值
next
Value
下一页面的值
sharing
手势触发时,由该函数控制共享元素的变化过程