예제 #1
0
 public Tween <T> visit <T, T2>(ImplicitlyAnimatedWidgetState <T2> state, Tween <T> tween, T targetValue,
                                TweenConstructor <T> constructor)
     where T2 : ImplicitlyAnimatedWidget
 {
     state._updateTween(tween, targetValue);
     return(tween);
 }
예제 #2
0
        public Tween <T> visit <T, T2>(ImplicitlyAnimatedWidgetState <T2> state, Tween <T> tween, T targetValue,
                                       TweenConstructor <T> constructor)
            where T2 : ImplicitlyAnimatedWidget
        {
            if (targetValue != null)
            {
                tween = tween ?? constructor(targetValue);
                if (state._shouldAnimateTween(tween, targetValue))
                {
                    this.shouldStartAnimation = true;
                }
            }
            else
            {
                tween = null;
            }

            return(tween);
        }