AppRoute class
Constructors
-
AppRoute.new({required RoutesMixin route, RouteWidgetBuilder? builder, ExitCallback? onExit, GlobalKey<NavigatorState>? parentNavigatorKey, List<RouteBase> routes = const <RouteBase>[], GoRouterRedirect? redirect})
-
-
AppRoute.custom({required RoutesMixin route, RouteWidgetBuilder? builder, RouteTransitionsBuilder? transitionsBuilder, ExitCallback? onExit, GlobalKey<NavigatorState>? parentNavigatorKey, List<RouteBase> routes = const <RouteBase>[], GoRouterRedirect? redirect})
-
-
AppRoute.page({required RoutesMixin route, RoutePageBuilder? builder, ExitCallback? onExit, GlobalKey<NavigatorState>? parentNavigatorKey, List<RouteBase> routes = const <RouteBase>[], GoRouterRedirect? redirect})
-
Properties
-
builder
→ GoRouterWidgetBuilder?
-
A custom builder for this route.
finalinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
name
→ String?
-
Optional name of the route.
finalinherited
-
onExit
→ ExitCallback?
-
Called when this route is removed from GoRouter's route history.
finalinherited
-
pageBuilder
→ GoRouterPageBuilder?
-
A page builder for this route.
finalinherited
-
parentNavigatorKey
→ GlobalKey<NavigatorState>?
-
An optional key specifying which Navigator to display this route's screen
onto.
finalinherited
-
path
→ String
-
The path of this go route.
finalinherited
-
redirect
→ GoRouterRedirect?
-
An optional redirect function for this route.
finalinherited
-
redirectOnly
→ bool
-
Whether this
GoRoute
only redirects to another route.
no setterinherited
-
route
→ RoutesMixin
-
final
-
routes
→ List<RouteBase>
-
The list of child routes associated with this route.
finalinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited