BottomSheetView constructor

const BottomSheetView({
  1. Key? key,
  2. AnimationController? animationController,
  3. Color? backgroundColor,
  4. double? elevation,
  5. ShapeBorder? shape,
  6. Clip? clipBehavior,
  7. BoxConstraints? constraints,
  8. VoidCallback? onClosing,
  9. bool? isDragMode,
  10. bool? enableHalf,
  11. bool enableDrag = true,
  12. BottomSheetDragStartHandler? onDragStart,
  13. BottomSheetDragEndHandler? onDragEnd,
  14. double? offsetThreshold,
  15. ValueChanged<BottomSheetBehavior>? onBehaviorChanged,
  16. required WidgetBuilder builder,
})

Implementation

const BottomSheetView({
  super.key,
  this.animationController,
  this.backgroundColor,
  this.elevation,
  this.shape,
  this.clipBehavior,
  this.constraints,
  this.onClosing,
  bool? isDragMode,
  bool? enableHalf,
  this.enableDrag = true,
  this.onDragStart,
  this.onDragEnd,
  double? offsetThreshold,
  this.onBehaviorChanged,
  required this.builder,
})  : isDragMode = isDragMode ?? false,
      enableHalfMode = enableHalf ?? false,
      offsetThreshold = offsetThreshold ?? _offsetThreshold,
      assert(enableDrag != null || enableDrag && animationController != null),
      assert(builder != null),
      assert(elevation == null || elevation >= 0.0);