targetState

open override var targetState: S

Target state of the transition. targetState is initialized to the initialState that the MutableTransitionState is constructed with.

It can be updated to a new state at any time. When that happens, the Transition that is created with this MutableTransitionState will update its Transition.targetState to the same and subsequently starts a transition animation to animate from the current values to the new target.