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,
- bool? popGesture,
- Bindings? binding,
- List<
Bindings> bindings = const [], - Transition? transition,
- CustomTransition? customTransition,
- bool fullscreenDialog = false,
- List<
GetPage> children = const <GetPage>[], - List<
GetMiddleware> ? middlewares, - GetPage? unknownRoute,
- Object? arguments,
- bool showCupertinoParallax = true,
- 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,
);