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); }
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); }