MorphPageRoute<T> constructor
- required Object from,
- required MorphContentBuilder builder,
- required MorphTargetSpec target,
- MorphMotion? motion,
- bool barrierDismissible = true,
- String? barrierLabel,
- double maxScrimOpacity = 0.45,
- Color scrimColor = Colors.black,
- Color shadowColor = const Color(0x99000000),
- String? semanticLabel,
- 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,
});