PageRouteBuilder<T> constructor
- RouteSettings? settings,
- required RoutePageBuilder pageBuilder,
- RouteTransitionsBuilder transitionsBuilder = _defaultTransitionsBuilder,
- Duration transitionDuration = const Duration(milliseconds: 300),
- Duration reverseTransitionDuration = const Duration(milliseconds: 300),
- bool opaque = true,
- bool barrierDismissible = false,
- Color? barrierColor,
- String? barrierLabel,
- bool maintainState = true,
- bool fullscreenDialog = false,
- bool allowSnapshotting = true,
Creates a route that delegates to builder callbacks.
Implementation
PageRouteBuilder({
super.settings,
required this.pageBuilder,
this.transitionsBuilder = _defaultTransitionsBuilder,
this.transitionDuration = const Duration(milliseconds: 300),
this.reverseTransitionDuration = const Duration(milliseconds: 300),
this.opaque = true,
this.barrierDismissible = false,
this.barrierColor,
this.barrierLabel,
this.maintainState = true,
super.fullscreenDialog,
super.allowSnapshotting = true,
});