showDragHandle property

bool? showDragHandle

Specifies whether a drag handle is shown.

The drag handle appears at the top of the bottom sheet. The default color is ColorScheme.onSurfaceVariant with an opacity of 0.4 and can be customized using dragHandleColor. The default size is Size(32,4) and can be customized with dragHandleSize.

If null, then the value of BottomSheetThemeData.showDragHandle is used. If that is also null, defaults to false.

If this is true, the animationController must not be null. Use BottomSheet.createAnimationController to create one, or provide another AnimationController.


final bool? showDragHandle;