MorpheusPageRoute<T> constructor

MorpheusPageRoute<T>({
  1. required WidgetBuilder builder,
  2. Duration transitionDuration = const Duration(milliseconds: 450),
  3. GlobalKey<State<StatefulWidget>>? parentKey,
  4. Color scrimColor = Colors.black45,
  5. BorderRadiusGeometry? borderRadius,
  6. Color? transitionColor,
  7. bool transitionToChild = true,
  8. bool scaleChild = true,
  9. 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);