isTransitioningTo

open infix fun S.isTransitioningTo(targetState: S): Boolean

Returns whether the provided state matches the initialState&& the provided targetState matches Segment.targetState.