CupertinoSheetRoute<T> constructor

CupertinoSheetRoute<T>({
  1. RouteSettings? settings,
  2. required WidgetBuilder builder,
  3. bool enableDrag = true,
  4. double? topGap,
  5. 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;