createAnimationController method Null safety
- TickerProvider vsync
Creates an AnimationController suitable for a BottomSheet.animationController.
This API available as a convenience for a Material compliant bottom sheet animation. If alternative animation durations are required, a different animation controller could be provided.
Implementation
static AnimationController createAnimationController(TickerProvider vsync) {
return AnimationController(
duration: _bottomSheetEnterDuration,
reverseDuration: _bottomSheetExitDuration,
debugLabel: 'BottomSheet',
vsync: vsync,
);
}