CupertinoSheetRoute<T> constructor
- RouteSettings? settings,
- required WidgetBuilder builder,
- bool enableDrag = true,
- double? topGap,
- bool showDragHandle = false,
Creates a page route that displays an iOS styled sheet.
Implementation
CupertinoSheetRoute({
super.settings,
required this.builder,
this.enableDrag = true,
double? topGap,
this.showDragHandle = false,
}) : assert(
topGap == null || (topGap >= 0.0 && topGap <= 0.9),
'topGap must be between 0.0 and 0.9',
),
_topGap = topGap;