toPageTransitionAnimation function

PageTransitionAnimation toPageTransitionAnimation(
  1. int? index
)

Implementation

PageTransitionAnimation toPageTransitionAnimation(int? index) {
  switch (index) {
    case 0:
      return PageTransitionAnimation.slideRightToLeft;
    case 1:
      return PageTransitionAnimation.slideBottomToTop;
    case 2:
      return PageTransitionAnimation.scaleRoute;
    case 3:
      return PageTransitionAnimation.rotationRoute;
    case 4:
      return PageTransitionAnimation.fadeRoute;
  }
  return PageTransitionAnimation.unknown;
}