createAnimationController method

  1. @override
AnimationController createAnimationController ()
override

Called to create the animation controller that will drive the transitions to this route from the previous one, and back to the previous route from this one.

Implementation

@override
AnimationController createAnimationController() {
  final AnimationController controller = super.createAnimationController();
  if (settings.isInitialRoute)
    controller.value = 1.0;
  return controller;
}