GetPage<T> constructor
GetPage<T> ({
- required String name,
- required GetPageBuilder page,
- String? title,
- double gestureWidth(
- BuildContext context
- bool maintainState = true,
- Curve curve = Curves.linear,
- Alignment? alignment,
- Map<
String, String> ? parameters, - bool opaque = true,
- Duration? transitionDuration,
- Duration? reverseTransitionDuration,
- bool? popGesture,
- BindingsInterface? binding,
- List<
BindingsInterface> bindings = const [], - List<
Bind> binds = const [], - Transition? transition,
- CustomTransition? customTransition,
- bool fullscreenDialog = false,
- List<
GetPage> children = const <GetPage>[], - List<
GetMiddleware> middlewares = const [], - GetPage? unknownRoute,
- Object? arguments,
- bool showCupertinoParallax = true,
- bool preventDuplicates = true,
- PreventDuplicateHandlingMode preventDuplicateHandlingMode = PreventDuplicateHandlingMode.reorderRoutes,
- Completer<
T?> ? completer, - bool inheritParentPath = true,
- LocalKey? key,
- bool canPop = true,
- PopInvokedWithResultCallback<
T> onPopInvoked = _defaultPopInvokedHandler, - 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,
);