AppRouter class
- Annotations
- 
    - @AutoRouterConfig.new()
 
Constructors
Properties
- activeGuardObserver → ActiveGuardObserver
- 
  The active guards observer of this controller
  finalinherited
- 
  See NavigationHistory.canNavigateBackno setterinherited
- 
  childControllers
  → List<RoutingController> 
- 
  Holds track of the list of attached child controllers
  no setterinherited
- current → RouteData
- 
  Returns currentChild if it's rendered
otherwise returns parent routeData
  no setterinherited
- currentChild → RouteData?
- 
  The active child representation of an implementation of this controller
  no setterinherited
- currentPath → String
- 
  Helper to access NavigationHistory.urlState.pathno setterinherited
- 
  currentSegments
  → List<RouteMatch> 
- 
  Collects the top-most visitable current-child of
every top-most nested controller considering this controller as root
  no setterinherited
- currentUrl → String
- 
  Helper to access NavigationHistory.urlState.urlno setterinherited
- defaultRouteType → RouteType
- 
  The default animation
  no setterinherited
- 
  globalRouterKey
  → GlobalObjectKey<State< StatefulWidget> >
- 
  This key is passed to the router scope
it's used to provide build context inside auto_route guards instead of
using navigatorKey.currentContextbecause it maybe null at timesfinalinherited
- 
  guards
  → List<AutoRouteGuard> 
- 
  A List of Root router guards
  no setterinherited
- hasEntries → bool
- 
  Whether this controller has rendered pages
  no setterinherited
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- hasListeners → bool
- 
  Whether any listeners are currently registered.
  no setterinherited
- hasPagelessTopRoute → bool
- 
  Whether the top-most route of this controller is page-less
  no setterinherited
- ignorePopCompleters ↔ bool
- 
  Whether AutoRoutePageshould await for pop-completergetter/setter pairinherited
- isRoot → bool
- 
  Whether is controller is the root of all controllers
  no setterinherited
- isTopMost → bool
- 
  Whether this controller has the top-most visible page
  no setterinherited
- key → Key
- 
  The Identifier key of this routing controller
  finalinherited
- managedByWidget → bool
- 
  Whether is router is used by a declarative-routing widget
  no setterinherited
- matcher → RouteMatcher
- 
  The matcher used by this controller
see RouteMatcherlatefinalinherited
- matchId → Key
- 
  The unique identifier of the RouteMatchlinked to this controllerfinalinherited
- 
  The instance of NavigationHistoryto be used by this routerno setterinherited
- 
  Navigator key passed to Navigator.key
  no setterinherited
- pageCount → int
- 
  The count of rendered pages
  no setterinherited
- pagelessRoutesObserver → PagelessRoutesObserver
- 
  The page-less route observer of this controller
  finalinherited
- parentAsStackRouter → StackRouter?
- 
  Returns parent route as StackRouterno setterinherited
- pathState → Object?
- 
  See NavigationHistory.pathStateno setterinherited
- root → RootStackRouter
- 
  Returns the root router as RootStackRouterno setterinherited
- routeCollection → RouteCollection
- 
  The list of routes consumed by this controller
  latefinalinherited
- routeData → RouteData
- 
  The data of the parent route
  no setterinherited
- 
  routes
  → List<AutoRoute> 
- 
  The list of route entries to match against
  no setter
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- 
  stack
  → List<AutoRoutePage> 
- 
  The current pages stack of this controller
  no setterinherited
- 
  stackData
  → List<RouteData> 
- 
  Returns an unmodifiable lis of current pages stack data
  no setterinherited
- stateHash → int
- 
  Takes a state snapshot of the current segments
  no setterinherited
- topMatch → RouteMatch
- 
  The top-most rendered or pending route match
  no setterinherited
- topPage → AutoRoutePage?
- 
  The top-most visible page
  no setterinherited
- topRoute → RouteData
- 
  The top-most rendered route
  no setterinherited
- urlState → UrlState
- 
  Helper to access NavigationHistory.urlStateno setterinherited
Methods
- 
  activeRouterCanPop({bool ignorePagelessRoutes = false}) → bool 
- 
  returns true if the active child controller can pop
  inherited
- 
  addListener(VoidCallback listener) → void 
- 
  Register a closure to be called when the object changes.
  inherited
- 
  attachChildController(RoutingController childController) → void 
- 
  Adds the given controller to the list of childControllersinherited
- 
  back() → void 
- 
  See NavigationHistory.backinherited
- 
  buildPageRoute(String? path, {bool includePrefixMatches = true}) → PageRouteInfo< Object?> ?
- 
  Finds match of paththen returns a route-able entityinherited
- 
  buildPageRoutesStack(String? path, {bool includePrefixMatches = true}) → List< PageRouteInfo< ?Object?> >
- 
  Finds matches of paththen returns a list of route-able entitiesinherited
- 
  canPop({bool ignoreChildRoutes = false, bool ignoreParentRoutes = false, bool ignorePagelessRoutes = false}) → bool 
- 
  Whether this controller can preform maybePop
  inherited
- 
  childrenCanPop({bool ignorePagelessRoutes = false}) → bool 
- 
  returns true if any child controller can pop
  inherited
- 
  config({DeepLinkTransformer? deepLinkTransformer, DeepLinkBuilder? deepLinkBuilder, WidgetBuilder? placeholder, bool includePrefixMatches = !kIsWeb, bool neglectWhen(String? location)?, bool rebuildStackOnDeepLink = false, Listenable? reevaluateListenable, Clip clipBehavior = Clip.hardEdge}) → RouterConfig< UrlState> 
- 
  Returns a RouterConfig instead to be passed
to MaterialApp.router
  inherited
- 
  currentHierarchy({bool asPath = false, bool ignorePending = false, bool ignoreParams = false}) → List< HierarchySegment> 
- 
  Builds a simplified hierarchy of current stacks
  inherited
- 
  defaultRouteParser({bool includePrefixMatches = !kIsWeb, DeepLinkTransformer? deepLinkTransformer}) → DefaultRouteParser 
- 
  Builds a lazy instance of DefaultRouteParserinherited
- 
  delegate({WidgetBuilder? placeholder, DeepLinkBuilder? deepLinkBuilder, bool rebuildStackOnDeepLink = false, Listenable? reevaluateListenable, Clip clipBehavior = Clip.hardEdge}) → AutoRouterDelegate 
- 
  Builds a lazy instance of AutoRouterDelegate_lazyRootDelegate is only built one timeinherited
- 
  dispose() → void 
- 
  Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
  inherited
- 
  innerRouterOf<T extends RoutingController> (String routeName) → T? 
- 
  Finds a child route corresponding to routeNameand casts it toTinherited
- 
  insert(PageRouteInfo< Object?> route, {int index = 0, OnNavigationFailure? onFailure}) → Future<void> 
- 
  Inserts the corresponding page to given routeto the_pagesstackinherited
- 
  isPathActive(String path) → bool 
- 
  See NavigationHistory.isPathActiveinherited
- 
  isRouteActive(String routeName) → bool 
- 
  See NavigationHistory.isRouteActiveinherited
- 
  isRouteDataActive(RouteData data) → bool 
- 
  See NavigationHistory.isRouteDataActiveinherited
- 
  markUrlStateForReplace() → void 
- 
  See NavigationHistory.markUrlStateForReplaceinherited
- 
  match(PageRouteInfo< Object?> route) → RouteMatch?
- 
  Helper to find route match
See RouteMatcher.matchByRouteinherited
- 
  maybePop<T extends Object?> ([T? result]) → Future< bool> 
- 
  Clients can either pop their own _pagesstack or defer the call to a parent controllerinherited
- 
  maybePopTop<T extends Object?> ([T? result]) → Future< bool> 
- 
  Calls maybePopon the controller with the top-most visible pageinherited
- 
  Pops until given route, if it already exists in stack otherwise adds it to the stack (good for web Apps and to avoid duplicate entries).inherited
- 
  Preforms pop-until finds cosponsoring route with routes.first then pushes allroutesinherited
- 
  Pops until given path, if it already exists in stackinherited
- 
  Pops until given path, if it already exists in stack otherwise adds it to the stackinherited
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  notifyAll({bool forceUrlRebuild = false}) → void 
- 
  Notify this controller for changes then notify root controller
if they're not the same
  inherited
- 
  notifyListeners() → void 
- 
  Call all the registered listeners.
  inherited
- 
  onGeneratePath(AutoRoute route) → String 
- 
  Generates a path for a route with the provided nameinherited
- 
  onPopPage(AutoRoutePage< Object?> page) → void
- 
  Called when Page route is popped
this is not called when pageless routes are popped e.g popping a dialog
that does not use PageRoute will not trigger this method
  inherited
- 
  parent<T extends RoutingController> () → T? 
- 
  Casts parent controller to Tinherited
- 
  pop<T extends Object?> ([T? result]) → void 
- 
  Pop current route regardless if it's the last
route in stack or the result of it's PopScopes
see Navigator.pop
  inherited
- 
  popAndPush<T extends Object?, TO extends Object?> (PageRouteInfo< Object?> route, {TO? result, OnNavigationFailure? onFailure}) → Future<T?> 
- 
  Pop the current route off the navigator and push the given routein its place.inherited
- 
  popAndPushAll(List< PageRouteInfo< routes, {dynamic onFailure}) → Future<Object?> >void> 
- 
  Pop the current route off the navigator and push all given routesin its place.inherited
- 
  popForced<T extends Object?> ([T? result]) → void 
- 
  Pop until given routeif it exists in stack otherwise does nothing see Navigator.popinherited
- 
  popTop<T extends Object?> ([T? result]) → void 
- 
  Calls popon the controller with the top-most visible pageinherited
- 
  popUntil(RoutePredicate predicate, {bool scoped = true}) → void 
- 
  Calls maybePoprepeatedly on the navigator until the predicate returns true.inherited
- 
  popUntilRoot() → void 
- 
  Pop the whole stack except for the first entry
  inherited
- 
  popUntilRouteWithName(String name, {bool scoped = true}) → void 
- 
  Helper to pop all routes until route with nameis found seepopUntilinherited
- 
  popUntilRouteWithPath(String path, {bool scoped = true}) → void 
- 
  Helper to pop all routes until route with pathis found seepopUntilinherited
- 
  push<T extends Object?> (PageRouteInfo< Object?> route, {OnNavigationFailure? onFailure}) → Future<T?> 
- 
  Adds the corresponding page to given routeto the_pagesstackinherited
- 
  pushAll(List< PageRouteInfo< routes, {OnNavigationFailure? onFailure}) → Future<Object?> >void> 
- 
  Adds the corresponding pages to given routeslist to the_pagesstack at onceinherited
- 
  pushAndPopUntil<T extends Object?> (PageRouteInfo< Object?> route, {required RoutePredicate predicate, bool scopedPopUntil = true, OnNavigationFailure? onFailure}) → Future<T?> 
- 
  Push the given routeonto the navigator, and thenmaybePopall the previous routes until thepredicatereturns true.inherited
- 
  pushNamed<T extends Object?> (String path, {bool includePrefixMatches = false, OnNavigationFailure? onFailure}) → Future< T?> 
- 
  Adds corresponding page to given pathto_pagesstackinherited
- 
  pushNativeRoute<T extends Object?> (Route< T> route) → Future<T?> 
- 
  Pushes a Route to Navigator
  inherited
- 
  pushPath<T extends Object?> (String path, {bool includePrefixMatches = false, OnNavigationFailure? onFailure}) → Future< T?> 
- 
  Adds corresponding page to given pathto_pagesstackinherited
- 
  pushPathState(Object? state) → void 
- 
  See NavigationHistory.pushPathStateinherited
- 
  pushWidget<T extends Object?> (Widget widget, {RouteTransitionsBuilder? transitionBuilder, bool fullscreenDialog = false, Duration transitionDuration = const Duration(milliseconds: 300), bool opaque = true}) → Future< T?> 
- 
  Pushes a raw widget to Navigator
  inherited
- 
  reevaluateGuards() → Future< void> 
- 
  Re-builds all routes in stack and reevaluate guarded
once by re-visiting the onNavigation method when evaluation logic changes
  inherited
- 
  removeChildController(RoutingController childController) → void 
- 
  removes the given controller from the list of childControllersinherited
- 
  removeLast() → bool 
- 
  Removes the very last entry from _pagesinherited
- 
  removeListener(VoidCallback listener) → void 
- 
  Remove a previously registered closure from the list of closures that are
notified when the object changes.
  inherited
- 
  removeRoute(RouteData route, {bool notify = true}) → void 
- 
  Removes given routeand any corresponding controllersinherited
- 
  removeUntil(RouteDataPredicate predicate, {bool scoped = true}) → bool 
- 
  Calls removeRouterepeatedly until the predicate returns true.inherited
- 
  removeWhere(RouteDataPredicate predicate, {bool notify = true}) → bool 
- 
  Removes any route that satisfied the predicate.inherited
- 
  replace<T extends Object?> (PageRouteInfo< Object?> route, {OnNavigationFailure? onFailure}) → Future<T?> 
- 
  Removes last entry in stack and pushes given routeif last entry ==routepage will just be updatedinherited
- 
  replaceAll(List< PageRouteInfo< routes, {OnNavigationFailure? onFailure, bool updateExistingRoutes = true}) → Future<Object?> >void> 
- 
  Remove the whole current pages stack and push all given routesinherited
- 
  replaceNamed<T extends Object?> (String path, {bool includePrefixMatches = false, OnNavigationFailure? onFailure}) → Future< T?> 
- 
  Removes last entry in stack and pushes given pathinherited
- 
  replacePath<T extends Object?> (String path, {bool includePrefixMatches = false, OnNavigationFailure? onFailure}) → Future< T?> 
- 
  Removes last entry in stack and pushes given pathif last entry.path ==pathpage will just be updatedinherited
- 
  routeInfoProvider({RouteInformation? initialRouteInformation, bool neglectWhen(String? location)?}) → AutoRouteInformationProvider 
- 
  Builds a lazy instance of AutoRouteInformationProviderinherited
- 
  topMostRouter({bool ignorePagelessRoutes = false}) → RoutingController 
- 
  Finds the router with top-most visible page
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
- 
  updateDeclarativeRoutes(List< PageRouteInfo< routes) → voidObject?> >
- 
  Replaces the list of _pageswith givenroutesresult used by declarative routing widgetsinherited
- 
  updateRouteData(RouteData data) → void 
- 
  Updates the value of routeData
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited