createAnimationController method

AnimationController createAnimationController()

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

AnimationController createAnimationController() {
  assert(!_transitionCompleter.isCompleted,
      'Cannot reuse a $runtimeType after disposing it.');
  assert(awesomeMessage.animationDuration != null &&
      awesomeMessage.animationDuration! >= Duration.zero);
  return AnimationController(
    duration: awesomeMessage.animationDuration,
    debugLabel: debugLabel,
    vsync: navigator!,
  );
}