SwipeAnimation constructor
const
SwipeAnimation({
- required Animation<
double> animation, - required WidgetBuilder builder,
- required double screenMaximumPercentage,
- required AnimationController? animationController,
- required bool enableDrag,
- required VoidCallback onClosing,
- required AxisDirection animationDirection,
- Key? key,
Implementation
const SwipeAnimation({
required this.animation,
required this.builder,
required this.screenMaximumPercentage,
required this.animationController,
required this.enableDrag,
required this.onClosing,
required this.animationDirection,
super.key,
}) : assert(
enableDrag && animationController != null,
"'BottomSheet.animationController' can not be null when 'BottomSheet.enableDrag' is true. "
"Use 'BottomSheet.createAnimationController' to create one, or provide another AnimationController.",
);