HeroFlightShuttleBuilder typedef Null safety

Widget HeroFlightShuttleBuilder(
  1. BuildContext flightContext,
  2. Animation<double> animation,
  3. HeroFlightDirection flightDirection,
  4. BuildContext fromHeroContext,
  5. BuildContext toHeroContext

A function that lets Heroes self supply a Widget that is shown during the hero's flight from one route to another instead of default (which is to show the destination route's instance of the Hero).


typedef HeroFlightShuttleBuilder = Widget Function(
  BuildContext flightContext,
  Animation<double> animation,
  HeroFlightDirection flightDirection,
  BuildContext fromHeroContext,
  BuildContext toHeroContext,