ModalBottomSheet constructor

const ModalBottomSheet({
  1. Key? key,
  2. required AnimationController animationController,
  3. Curve? animationCurve,
  4. bool enableDrag = true,
  5. WidgetWithChildBuilder? containerBuilder,
  6. bool bounce = true,
  7. Future<bool> shouldClose()?,
  8. required ScrollController scrollController,
  9. required bool expanded,
  10. required dynamic onClosing(),
  11. required Widget child,
  12. double minFlingVelocity = _minFlingVelocity,
  13. double? closeProgressThreshold,
  14. double willPopThreshold = _willPopThreshold,
})

Creates a bottom sheet.

Implementation

const ModalBottomSheet({
  super.key,
  required this.animationController,
  this.animationCurve,
  this.enableDrag = true,
  this.containerBuilder,
  this.bounce = true,
  this.shouldClose,
  required this.scrollController,
  required this.expanded,
  required this.onClosing,
  required this.child,
  this.minFlingVelocity = _minFlingVelocity,
  double? closeProgressThreshold,
  this.willPopThreshold = _willPopThreshold,
}) : closeProgressThreshold =
          closeProgressThreshold ?? _closeProgressThreshold;