CustomPageRouteBuilder<T> constructor

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

Creates a route that delegates to builder callbacks.

The pageBuilder, transitionsBuilder, opaque, barrierDismissible, and maintainState arguments must not be null.

Implementation

CustomPageRouteBuilder({
  super.settings,
  required this.pageBuilder,
  this.transitionsBuilder = _defaultTransitionsBuilder,
  this.transitionDuration = const Duration(milliseconds: 300),
  this.opaque = true,
  this.barrierDismissible = false,
  this.barrierColor,
  this.barrierLabel,
  this.maintainState = true,
}) : super(fullscreenDialog: false);