GetPageRoute<T> constructor

GetPageRoute<T>({
  1. RouteSettings? settings,
  2. Duration transitionDuration = const Duration(milliseconds: 300),
  3. Duration reverseTransitionDuration = const Duration(milliseconds: 300),
  4. bool opaque = true,
  5. Map<String, String>? parameter,
  6. double gestureWidth(
    1. BuildContext context
    )?,
  7. Curve? curve,
  8. Alignment? alignment,
  9. Transition? transition,
  10. bool? popGesture,
  11. CustomTransition? customTransition,
  12. bool barrierDismissible = false,
  13. Color? barrierColor,
  14. BindingsInterface? binding,
  15. List<BindingsInterface> bindings = const <BindingsInterface>[],
  16. List<Bind>? binds,
  17. String? routeName,
  18. GetPageBuilder? page,
  19. String? title,
  20. bool showCupertinoParallax = true,
  21. String? barrierLabel,
  22. bool maintainState = true,
  23. bool fullscreenDialog = false,
  24. List<GetMiddleware>? middlewares,
})

Creates a page route for use in an iOS designed app.

The builder, maintainState, and fullscreenDialog arguments must not be null.

Implementation

GetPageRoute({
  super.settings,
  this.transitionDuration = const Duration(milliseconds: 300),
  this.reverseTransitionDuration = const Duration(milliseconds: 300),
  this.opaque = true,
  this.parameter,
  this.gestureWidth,
  this.curve,
  this.alignment,
  this.transition,
  this.popGesture,
  this.customTransition,
  this.barrierDismissible = false,
  this.barrierColor,
  BindingsInterface? binding,
  List<BindingsInterface> bindings = const <BindingsInterface>[],
  this.binds,
  this.routeName,
  this.page,
  this.title,
  this.showCupertinoParallax = true,
  this.barrierLabel,
  this.maintainState = true,
  super.fullscreenDialog,
  this.middlewares,
})  : bindings = (binding == null) ? bindings : [...bindings, binding],
      _middlewareRunner = MiddlewareRunner(middlewares);