createAnimationController static method
- required TickerProvider vsync,
- Duration? duration,
- Duration? reverseDuration,
Creates an animation controller useful for driving a snack bar's entrance and exit animation.
Implementation
static AnimationController createAnimationController({
required TickerProvider vsync,
Duration? duration,
Duration? reverseDuration,
}) {
return AnimationController(
duration: duration ?? _snackBarTransitionDuration,
reverseDuration: reverseDuration,
debugLabel: 'SnackBar',
vsync: vsync,
);
}