CupertinoSheetRoute<T> constructor

CupertinoSheetRoute<T>({
  1. required WidgetBuilder builder,
  2. List<double>? stops,
  3. double initialStop = 1,
  4. RouteSettings? settings,
  5. Color? backgroundColor,
  6. bool maintainState = true,
  7. SheetFit fit = SheetFit.expand,
})

Implementation

CupertinoSheetRoute({
  required WidgetBuilder builder,
  super.stops,
  double initialStop = 1,
  super.settings,
  Color? backgroundColor,
  super.maintainState = true,
  super.fit,
}) : super(
        builder: (BuildContext context) {
          return _CupertinoSheetDecorationBuilder(
            child: Builder(builder: builder),
            backgroundColor: backgroundColor,
            topRadius: _kCupertinoSheetTopRadius,
          );
        },
        animationCurve: _kCupertinoSheetCurve,
        initialExtent: initialStop,
      );