ModalSheetRoute<T> constructor

ModalSheetRoute<T>({
  1. double? closeProgressThreshold,
  2. WidgetWithChildBuilder? containerBuilder,
  3. required WidgetBuilder builder,
  4. ScrollController? scrollController,
  5. String? barrierLabel,
  6. AnimationController? secondAnimationController,
  7. Color? modalBarrierColor,
  8. bool isDismissible = true,
  9. bool enableDrag = true,
  10. required bool expanded,
  11. double? blur,
  12. Color? blurColor,
  13. bool bounce = false,
  14. Curve? animationCurve,
  15. Duration? duration,
  16. RouteSettings? settings,
})

Implementation

ModalSheetRoute({
  this.closeProgressThreshold,
  this.containerBuilder,
  required this.builder,
  this.scrollController,
  this.barrierLabel,
  this.secondAnimationController,
  this.modalBarrierColor,
  this.isDismissible = true,
  this.enableDrag = true,
  required this.expanded,
  this.blur,
  this.blurColor,
  this.bounce = false,
  this.animationCurve,
  Duration? duration,
  super.settings,
}) : duration = duration ?? _bottomSheetDuration;