createAnimationController method

AnimationController createAnimationController()

Implementation

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