TweenConstructor<T> typedef

Tween<T> TweenConstructor (
  1. T targetValue

Signature for a Tween factory.

This is the type of one of the arguments of TweenVisitor, the signature used by AnimatedWidgetBaseState.forEachTween.

Instances of this function are expected to take a value and return a tween beginning at that value.


typedef TweenConstructor<T> = Tween<T> Function(T targetValue);