createAnimationController static method Null safety

AnimationController createAnimationController(
  1. {required TickerProvider vsync}
)

Creates an animation controller useful for driving a snack bar's entrance and exit animation.

Implementation

static AnimationController createAnimationController({ required TickerProvider vsync }) {
  return AnimationController(
    duration: _snackBarTransitionDuration,
    debugLabel: 'SnackBar',
    vsync: vsync,
  );
}