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. bool? popGesture,
  13. Bindings? binding,
  14. List<Bindings> bindings = const [],
  15. Transition? transition,
  16. CustomTransition? customTransition,
  17. bool fullscreenDialog = false,
  18. List<GetPage> children = const <GetPage>[],
  19. List<GetMiddleware>? middlewares,
  20. GetPage? unknownRoute,
  21. Object? arguments,
  22. bool showCupertinoParallax = true,
  23. bool preventDuplicates = true}
)

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.popGesture,
  this.binding,
  this.bindings = const [],
  this.transition,
  this.customTransition,
  this.fullscreenDialog = false,
  this.children = const <GetPage>[],
  this.middlewares,
  this.unknownRoute,
  this.arguments,
  this.showCupertinoParallax = true,
  this.preventDuplicates = true,
})  : path = _nameToRegex(name),
      assert(name.startsWith('/'),
          'It is necessary to start route name [$name] with a slash: /$name'),
      super(
        key: ValueKey(name),
        name: name,
        arguments: Get.arguments,
      );