GetModalBottomSheetRoute<T> constructor

GetModalBottomSheetRoute<T>({
  1. required bool isScrollControlled,
  2. WidgetBuilder? builder,
  3. ThemeData? theme,
  4. String? barrierLabel,
  5. Color? backgroundColor,
  6. bool? isPersistent,
  7. double? elevation,
  8. ShapeBorder? shape,
  9. Clip? clipBehavior,
  10. Color? modalBarrierColor,
  11. bool isDismissible = true,
  12. bool enableDrag = true,
  13. RouteSettings? settings,
  14. Duration enterBottomSheetDuration = const Duration(milliseconds: 250),
  15. Duration exitBottomSheetDuration = const Duration(milliseconds: 200),
  16. Curve? curve,
  17. bool removeTop = true,
  18. BoxConstraints? constraints,
  19. bool? showDragHandle = true,
  20. Color? shadowColor,
  21. Color? dragHandleColor,
  22. Size? dragHandleSize,
  23. BottomSheetDragStartHandler? onDragStart,
  24. BottomSheetDragEndHandler? onDragEnd,
})

Constructs a GetModalBottomSheetRoute.

Implementation

GetModalBottomSheetRoute({
  required this.isScrollControlled,
  this.builder,
  this.theme,
  this.barrierLabel,
  this.backgroundColor,
  this.isPersistent,
  this.elevation,
  this.shape,
  this.clipBehavior,
  this.modalBarrierColor,
  this.isDismissible = true,
  this.enableDrag = true,
  super.settings,
  this.enterBottomSheetDuration = const Duration(milliseconds: 250),
  this.exitBottomSheetDuration = const Duration(milliseconds: 200),
  this.curve,
  this.removeTop = true,
  this.constraints,
  this.showDragHandle = true,
  this.shadowColor,
  this.dragHandleColor,
  this.dragHandleSize,
  this.onDragStart,
  this.onDragEnd,
}) {
  RouterReportManager.instance.reportCurrentRoute(this);
}