updateValue

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

preValue

上一页面的值

currentValue

当前页面的值

nextValue

下一页面的值

sharing

手势触发时,由该函数控制共享元素的变化过程