ModalBottomSheet<ResultType> constructor

ModalBottomSheet<ResultType>({
  1. BuildContext? context,
  2. Key? key,
  3. bool enableDrag = true,
  4. bool isDismissible = true,
  5. bool useSafeArea = false,
  6. Color handleColor = const Color(0xffdddddd),
  7. Color backgroundColor = Colors.white,
  8. double verticalBorderRadius = 20.0,
  9. double handlerWidth = 30.0,
  10. double handlerHeight = 4.0,
  11. double? elevation,
  12. ShapeBorder? shape,
  13. Clip? clipBehavior,
  14. BoxConstraints? constraints,
  15. Color? barrierColor,
  16. RouteSettings? routeSettings,
  17. AnimationController? transitionAnimationController,
  18. Offset? anchorPoint,
  19. bool isScrollControlled = false,
  20. bool useRootNavigator = false,
})

Implementation

ModalBottomSheet({
  BuildContext? context,
  super.key,
  this.enableDrag = true,
  this.isDismissible = true,
  this.useSafeArea = false,
  this.handleColor = const Color(0xffdddddd),
  this.backgroundColor = Colors.white,
  this.verticalBorderRadius = 20.0,
  this.handlerWidth = 30.0,
  this.handlerHeight = 4.0,
  this.elevation,
  this.shape,
  this.clipBehavior,
  this.constraints,
  this.barrierColor,
  this.routeSettings,
  this.transitionAnimationController,
  this.anchorPoint,
  this.isScrollControlled = false,
  this.useRootNavigator = false,
}) : context = context ?? Nav.globalContext;