BottomSheetModifier constructor

const BottomSheetModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. AnimationController? animationController,
  5. bool enableDrag = true,
  6. BottomSheetDragStartHandler? onDragStart,
  7. BottomSheetDragEndHandler? onDragEnd,
  8. Color? backgroundColor,
  9. double? elevation,
  10. ShapeBorder? shape,
  11. Clip? clipBehavior,
  12. BoxConstraints? constraints,
  13. required VoidCallback onClosing,
  14. required SingleChildWidgetBuilder builder,
})

Creates a bottom sheet.

Typically, bottom sheets are created implicitly by ScaffoldState.showBottomSheet, for persistent bottom sheets, or by showModalBottomSheet, for modal bottom sheets.

Implementation

const BottomSheetModifier({
  super.key,
  super.modifierKey,
  super.child,
  this.animationController,
  this.enableDrag = true,
  this.onDragStart,
  this.onDragEnd,
  this.backgroundColor,
  this.elevation,
  this.shape,
  this.clipBehavior,
  this.constraints,
  required this.onClosing,
  required this.builder,
}) : assert(elevation == null || elevation >= 0.0);