RouteTransitionsBuilder typedef

Widget RouteTransitionsBuilder (
  1. BuildContext context,
  2. Animation<double> animation,
  3. Animation<double> secondaryAnimation,
  4. Widget child
)

Signature for the function that builds a route's transitions. Used in PageRouteBuilder and showGeneralDialog.

See ModalRoute.buildTransitions for complete definition of the parameters.

Implementation

typedef RouteTransitionsBuilder = Widget Function(BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child);