createAnimationController static method
Creates an AnimationController suitable for a ModalBottomSheet.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, {
Duration? duration,
}) {
return AnimationController(
duration: duration ?? _bottomSheetDuration,
debugLabel: 'BottomSheet',
vsync: vsync,
);
}