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,
    List<double>? stops,
    double initialStop = 1,
    RouteSettings? settings,
    Color? backgroundColor,
    bool maintainState = true,
    super.fit})
    : super(
        builder: (BuildContext context) {
          return _CupertinoSheetDecorationBuilder(
            child: Builder(builder: builder),
            backgroundColor: backgroundColor,
            topRadius: _kCupertinoSheetTopRadius,
          );
        },
        settings: settings,
        animationCurve: _kCupertinoSheetCurve,
        stops: stops,
        initialExtent: initialStop,
        maintainState: maintainState,
      );