RouteTransitionsBuilder typedef Null safety

RouteTransitionsBuilder = Widget Function(BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, 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);