ModalBuilder.bottomSheet constructor

const ModalBuilder.bottomSheet({
  1. Key? key,
  2. ModalWidgetBuilder? builder,
  3. required Widget child,
  4. bool shouldBlurBackground = false,
  5. double blurAmount = 3.0,
  6. Function? onDismissed,
  7. Function? onExpanded,
  8. bool isDismissable = true,
  9. bool isExpandable = false,
  10. double? size,
  11. double expandedPercentageSize = 85,
  12. double contentPaddingByDragHandle = 35.0,
  13. Color? modalColor,
  14. Color barrierColor = Colors.transparent,
  15. bool blockBackgroundInteraction = false,
  16. String? id,
})

Creates a ModalBuilder for bottom sheet modals

This is an alias for the default constructor with clearer intent.

Implementation

const ModalBuilder.bottomSheet({
  super.key,
  this.builder,
  required this.child,
  this.shouldBlurBackground = false,
  this.blurAmount = 3.0,
  this.onDismissed,
  this.onExpanded,
  this.isDismissable = true,
  this.isExpandable = false,
  this.size,
  this.expandedPercentageSize = 85,
  this.contentPaddingByDragHandle = 35.0,
  this.modalColor,
  this.barrierColor = Colors.transparent,
  this.blockBackgroundInteraction = false,
  this.id,
})  : modalType = ModalType.sheet,
      modalPosition = Alignment.bottomCenter,
      modalAnimationType = ModalAnimationType.fade,
      isDraggable = false,
      isSwipeable = true,
      autoDismissDuration = null,
      snackbarDisplayMode = SnackbarDisplayMode.staggered,
      maxStackedSnackbars = 3,
      snackbarWidth = null;