GetPage<T> constructor

GetPage<T>({
  1. required String name,
  2. required GetPageBuilder page,
  3. String? title,
  4. bool? participatesInRootNavigator,
  5. double gestureWidth(
    1. BuildContext context
    )?,
  6. bool maintainState = true,
  7. Curve curve = Curves.linear,
  8. Alignment? alignment,
  9. Map<String, String>? parameters,
  10. bool opaque = true,
  11. Duration? transitionDuration,
  12. Duration? reverseTransitionDuration,
  13. bool? popGesture,
  14. BindingsInterface? binding,
  15. List<BindingsInterface> bindings = const [],
  16. List<Bind> binds = const [],
  17. Transition? transition,
  18. CustomTransition? customTransition,
  19. bool fullscreenDialog = false,
  20. List<GetPage> children = const <GetPage>[],
  21. List<GetMiddleware> middlewares = const [],
  22. GetPage? unknownRoute,
  23. Object? arguments,
  24. bool showCupertinoParallax = true,
  25. bool preventDuplicates = true,
  26. PreventDuplicateHandlingMode preventDuplicateHandlingMode = PreventDuplicateHandlingMode.reorderRoutes,
  27. Completer<T?>? completer,
  28. bool inheritParentPath = true,
  29. LocalKey? key,
  30. bool canPop = true,
  31. PopInvokedWithResultCallback<T> onPopInvoked = _defaultPopInvokedHandler,
  32. String? restorationId,
})

Implementation

GetPage({
  required this.name,
  required this.page,
  this.title,
  this.participatesInRootNavigator,
  this.gestureWidth,
  // RouteSettings settings,
  this.maintainState = true,
  this.curve = Curves.linear,
  this.alignment,
  this.parameters,
  this.opaque = true,
  this.transitionDuration,
  this.reverseTransitionDuration,
  this.popGesture,
  this.binding,
  this.bindings = const [],
  this.binds = const [],
  this.transition,
  this.customTransition,
  this.fullscreenDialog = false,
  this.children = const <GetPage>[],
  this.middlewares = const [],
  this.unknownRoute,
  this.arguments,
  this.showCupertinoParallax = true,
  this.preventDuplicates = true,
  this.preventDuplicateHandlingMode =
      PreventDuplicateHandlingMode.reorderRoutes,
  this.completer,
  this.inheritParentPath = true,
  LocalKey? key,
  super.canPop,
  super.onPopInvoked = _defaultPopInvokedHandler,
  super.restorationId,
})  : path = _nameToRegex(name),
      assert(name.startsWith('/'),
          'It is necessary to start route name [$name] with a slash: /$name'),
      super(
        key: key ?? ValueKey(name),
        name: name,
        // arguments: Get.arguments,
      );