MorphPageRoute<T> constructor

MorphPageRoute<T>({
  1. required Object from,
  2. required MorphContentBuilder builder,
  3. required MorphTargetSpec target,
  4. MorphMotion? motion,
  5. bool barrierDismissible = true,
  6. String? barrierLabel,
  7. double maxScrimOpacity = 0.45,
  8. Color scrimColor = Colors.black,
  9. Color shadowColor = const Color(0x99000000),
  10. String? semanticLabel,
  11. RouteSettings? settings,
})

Creates the route; prefer showMorphRoute, which also resolves MorphTheme defaults and the localized barrier label.

Implementation

MorphPageRoute({
  required this.from,
  required this.builder,
  required this.target,
  this.motion,
  // Private named parameters (callers pass the public names) backing
  // the ModalRoute getter overrides.
  this._barrierDismissible = true,
  this._barrierLabel,
  this.maxScrimOpacity = 0.45,
  this.scrimColor = Colors.black,
  this.shadowColor = const Color(0x99000000),
  this.semanticLabel,
  super.settings,
});