GetModalBottomSheetRoute<T> constructor
GetModalBottomSheetRoute<T> ({
- WidgetBuilder? builder,
- ThemeData? theme,
- String? barrierLabel,
- Color? backgroundColor,
- double? elevation,
- ShapeBorder? shape,
- bool removeTop = true,
- Clip? clipBehavior,
- Color? modalBarrierColor,
- bool isDismissible = true,
- bool enableDrag = true,
- bool? showDragHandle,
- Color? dragHandleColor,
- Size? dragHandleSize,
- Color? shadowColor,
- Color? surfaceTintColor,
- required bool isScrollControlled,
- RouteSettings? settings,
- Duration enterBottomSheetDuration = const Duration(milliseconds: 250),
- Duration exitBottomSheetDuration = const Duration(milliseconds: 200),
- Curve? curve,
Constructs a GetModalBottomSheetRoute.
This requires a builder that returns the widget content of the bottom sheet.
Standard parameters like backgroundColor, elevation, and shape will fall back
to the closest BottomSheetThemeData if omitted.
Implementation
GetModalBottomSheetRoute({
this.builder,
this.theme,
this.barrierLabel,
this.backgroundColor,
this.elevation,
this.shape,
this.removeTop = true,
this.clipBehavior,
this.modalBarrierColor,
this.isDismissible = true,
this.enableDrag = true,
this.showDragHandle,
this.dragHandleColor,
this.dragHandleSize,
this.shadowColor,
this.surfaceTintColor,
required this.isScrollControlled,
super.settings,
this.enterBottomSheetDuration = const Duration(milliseconds: 250),
this.exitBottomSheetDuration = const Duration(milliseconds: 200),
this.curve,
}) {
RouterReportManager.instance.reportCurrentRoute(this);
}