MorpheusPageRoute<T> constructor
MorpheusPageRoute<T> ({
- required WidgetBuilder builder,
- Duration transitionDuration = const Duration(milliseconds: 450),
- GlobalKey<
State< ? parentKey,StatefulWidget> > - Color scrimColor = Colors.black45,
- BorderRadiusGeometry? borderRadius,
- Color? transitionColor,
- bool transitionToChild = true,
- bool scaleChild = true,
- RouteSettings? settings,
Construct a MorpheusPageRoute whose contents are defined by builder
.
The values of builder
, parentKey
, transitionDuration
, elevation
,
and scrimColor
must not be null.
Implementation
MorpheusPageRoute({
required this.builder,
this.transitionDuration = const Duration(milliseconds: 450),
this.parentKey,
this.scrimColor = Colors.black45,
this.borderRadius,
this.transitionColor,
this.transitionToChild = true,
this.scaleChild = true,
RouteSettings? settings,
}) : super(settings: settings);