BottomSheetView constructor
const
BottomSheetView({
- Key? key,
- AnimationController? animationController,
- Color? backgroundColor,
- double? elevation,
- ShapeBorder? shape,
- Clip? clipBehavior,
- BoxConstraints? constraints,
- VoidCallback? onClosing,
- bool? isDragMode,
- bool? enableHalf,
- bool enableDrag = true,
- BottomSheetDragStartHandler? onDragStart,
- BottomSheetDragEndHandler? onDragEnd,
- double? offsetThreshold,
- ValueChanged<
BottomSheetBehavior> ? onBehaviorChanged, - 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);