animateValue
fun <T> animateValue(typeConverter: TypeConverter<T>, transitionSpec: Segment<S>.() -> FiniteAnimationSpec<T> = { spring() }, label: String = "", targetValueByState: (S) -> T): Value<T>
Animates a value of type T as part of this transition using a custom TypeConverter.
This is the generic form used by animateFloat, animateInt, animateColor, and animateDimen. Use it directly when animating a custom type with your own TypeConverter.
The returned Value is a stable slot handle: the underlying long-lived AnimatedValue is created during commit, not here, so this call performs no shared-state mutation and is safe under concurrent resolves.
Return
A Value containing the current animated value.