HeroHereFlightRectTweenFactory typedef

HeroHereFlightRectTweenFactory = RectTween Function(Rect? begin, Rect? end)

Makes the tween of the rect a flight's shuttle takes, from where its leg begins to where the hero it lands on is, its end. Once the flight turns around, the rest of it takes a tween between where it turned and where the hero it heads for is, backward if it heads back. It's called on every frame of the flight with where that hero is on that frame, so the shuttle follows the hero when it moves.

Implementation

typedef HeroHereFlightRectTweenFactory = RectTween Function(
  Rect? begin,
  Rect? end,
);