TweenConstructor<T> typedef

Tween<T> TweenConstructor (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.

Implementation

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