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 <BindingsInterface<dynamic>>[], - List<
Bind> binds = const <Bind<dynamic>>[], - Transition? transition,
- CustomTransition? customTransition,
- bool fullscreenDialog = false,
- List<
GetPage> children = const <GetPage<dynamic>>[], - List<
GetMiddleware> middlewares = const <GetMiddleware<dynamic>>[], - GetPage? unknownRoute,
- Object? arguments,
- bool showCupertinoParallax = true,
- bool preventDuplicates = true,
- PreventDuplicateHandlingMode preventDuplicateHandlingMode = PreventDuplicateHandlingMode.reorderRoutes,
- Completer<
T?> ? completer, - bool inheritParentPath = true,
- LocalKey? key,
Creates a GetPage with the specified configuration.
Implementation
GetPage({
required this.name,
required this.page,
this.title,
this.participatesInRootNavigator,
this.gestureWidth,
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 <BindingsInterface<dynamic>>[],
this.binds = const <Bind<dynamic>>[],
this.transition,
this.customTransition,
this.fullscreenDialog = false,
this.children = const <GetPage<dynamic>>[],
this.middlewares = const <GetMiddleware<dynamic>>[],
this.unknownRoute,
this.arguments,
this.showCupertinoParallax = true,
this.preventDuplicates = true,
this.preventDuplicateHandlingMode =
PreventDuplicateHandlingMode.reorderRoutes,
this.completer,
this.inheritParentPath = true,
LocalKey? key,
}) : path = _nameToRegex(name),
assert(
name.startsWith("/"),
"It is necessary to start route name [$name] with a slash: /$name",
),
super(
key: key ?? ValueKey<String>(name),
name: name,
);