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.

The returned controller will be disposed by AnimationController.dispose if the willDisposeAnimationController is true.

Implementation

@override
AnimationController createAnimationController() {
  assert(_animationController == null);
  if (transitionAnimationController != null) {
    _animationController = transitionAnimationController;
    willDisposeAnimationController = false;
  } else {
    _animationController = BottomSheet.createAnimationController(navigator!);
  }
  return _animationController!;
}