CreateRectTween typedef Null safety

Tween<Rect?> CreateRectTween(
  1. Rect? begin,
  2. 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);