BottomSheet constructor
- Key? key,
- AnimationController? animationController,
- bool enableDrag = true,
- bool? showDragHandle,
- Color? dragHandleColor,
- Size? dragHandleSize,
- BottomSheetDragStartHandler? onDragStart,
- BottomSheetDragEndHandler? onDragEnd,
- Color? backgroundColor,
- Color? shadowColor,
- double? elevation,
- ShapeBorder? shape,
- Clip? clipBehavior,
- BoxConstraints? constraints,
- required VoidCallback onClosing,
- required WidgetBuilder 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 BottomSheet({
super.key,
this.animationController,
this.enableDrag = true,
this.showDragHandle,
this.dragHandleColor,
this.dragHandleSize,
this.onDragStart,
this.onDragEnd,
this.backgroundColor,
this.shadowColor,
this.elevation,
this.shape,
this.clipBehavior,
this.constraints,
required this.onClosing,
required this.builder,
}) : assert(elevation == null || elevation >= 0.0);