ModalBottomSheet constructor
const
ModalBottomSheet({
- Key? key,
- required AnimationController animationController,
- Curve? animationCurve,
- bool enableDrag = true,
- WidgetWithChildBuilder? containerBuilder,
- bool bounce = true,
- Future<
bool> shouldClose()?, - required ScrollController scrollController,
- required bool expanded,
- required dynamic onClosing(),
- required Widget child,
- double minFlingVelocity = _minFlingVelocity,
- double? closeProgressThreshold,
- 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;