PageRouteBuilder<T> constructor

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