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.


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