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,
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,
);