GateGetPage class

A GetPage whose page is the gate.

GetMaterialApp(getPages: [
  GateGetPage(name: '/checkout', gate: checkoutGate),
  GetPage(name: '/checkout/express', page: () => const ExpressPage()),
]);

Navigating to /checkout (Get.toNamed, deep link, or a redirect) shows the loading view, decides, and renders the chosen candidate's builder inline. Candidates therefore need builders. If your destinations are separate GetPages, use GetxAdapter or GateMiddleware instead.

Inheritance

Constructors

GateGetPage({required String name, required Gate gate, GateGetContext? contextFromRoute, Widget? loading, Transition? transition, List<GetMiddleware>? middlewares, Bindings? binding, List<Bindings> bindings = const [], bool fullscreenDialog = false, String? title})
Creates the page.

Properties

alignment → Alignment?
finalinherited
arguments → Object?
The arguments passed to this route.
finalinherited
binding → Bindings?
finalinherited
bindings → List<Bindings>
finalinherited
canPop → bool
When false, blocks the associated route from being popped.
finalinherited
children → List<GetPage>
finalinherited
curve → Curve
finalinherited
customTransition → CustomTransition?
finalinherited
fullscreenDialog → bool
finalinherited
gestureWidth → double Function(BuildContext context)?
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
key → LocalKey?
The key associated with this page.
finalinherited
maintainState → bool
finalinherited
middlewares → List<GetMiddleware>?
finalinherited
name → String
The name of the route (e.g., "/settings").
finalinherited
onPopInvoked → PopInvokedWithResultCallback<void>
Called after a pop on the associated route was handled.
finalinherited
opaque → bool
finalinherited
page → GetPageBuilder
finalinherited
parameters → Map<String, String>?
finalinherited
participatesInRootNavigator → bool?
finalinherited
path → PathDecoded
finalinherited
popGesture → bool?
finalinherited
preventDuplicates → bool
finalinherited
restorationId → String?
Restoration ID to save and restore the state of the Route configured by this page.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showCupertinoParallax → bool
finalinherited
title → String?
finalinherited
transition → Transition?
finalinherited
transitionDuration → Duration?
finalinherited
unknownRoute → GetPage?
finalinherited

Methods

canUpdate(Page other) → bool
Whether this page can be updated with the other page.
inherited
copy({String? name, GetPageBuilder? page, bool? popGesture, Map<String, String>? parameters, String? title, Transition? transition, Curve? curve, Alignment? alignment, bool? maintainState, bool? opaque, Bindings? binding, List<Bindings>? bindings, CustomTransition? customTransition, Duration? transitionDuration, bool? fullscreenDialog, RouteSettings? settings, List<GetPage>? children, GetPage? unknownRoute, List<GetMiddleware>? middlewares, bool? preventDuplicates, double gestureWidth(BuildContext context)?, bool? participatesInRootNavigator, Object? arguments, bool? showCupertinoParallax}) → GetPage<void>
inherited
createRoute(BuildContext context) → Route<void>
Creates the Route that corresponds to this page.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited