PageRouteBuilder<T> constructor

PageRouteBuilder<T>({
  1. RouteSettings? settings,
  2. bool? requestFocus,
  3. required RoutePageBuilder pageBuilder,
  4. RouteTransitionsBuilder transitionsBuilder = _defaultTransitionsBuilder,
  5. Duration transitionDuration = const Duration(milliseconds: 300),
  6. Duration reverseTransitionDuration = const Duration(milliseconds: 300),
  7. bool opaque = true,
  8. bool barrierDismissible = false,
  9. Color? barrierColor,
  10. String? barrierLabel,
  11. bool maintainState = true,
  12. bool fullscreenDialog = false,
  13. bool allowSnapshotting = true,
})

Creates a route that delegates to builder callbacks.

Implementation

PageRouteBuilder({
  super.settings,
  super.requestFocus,
  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,
});