CupertinoSheetRoute<T> constructor
CupertinoSheetRoute<T> ({
- required WidgetBuilder builder,
- List<
double> ? stops, - double initialStop = 1,
- RouteSettings? settings,
- Color? backgroundColor,
- bool maintainState = true,
- 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,
);