getPreviousRouteTransition method

  1. @override
Widget getPreviousRouteTransition(
  1. BuildContext context,
  2. Animation<double> secondAnimation,
  3. Widget child
)
override

Implementation

@override
Widget getPreviousRouteTransition(
    BuildContext context, Animation<double> secondAnimation, Widget child) {
  return _CupertinoModalTransition(
    secondaryAnimation: secondAnimation,
    body: child,
    animationCurve: previousRouteAnimationCurve,
    topRadius: topRadius,
    backgroundColor: transitionBackgroundColor ?? Colors.black,
  );
}