SwipeAnimation constructor

const SwipeAnimation({
  1. required Animation<double> animation,
  2. required WidgetBuilder builder,
  3. required double screenMaximumPercentage,
  4. required AnimationController? animationController,
  5. required bool enableDrag,
  6. required VoidCallback onClosing,
  7. required AxisDirection animationDirection,
  8. 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.",
      );