CreateRectTween typedef

Tween<Rect> CreateRectTween (Rect begin, Rect end)

Signature for a function that takes two Rect instances and returns a RectTween that transitions between them.

This is typically used with a HeroController to provide an animation for Hero positions that looks nicer than a linear movement. For example, see MaterialRectArcTween.


typedef CreateRectTween = Tween<Rect> Function(Rect begin, Rect end);