AppRouter class final

Flutter's RouterConfig implementation backed by typed routes.

Inheritance
Implemented types

Constructors

AppRouter({required Iterable<RouteNode> routes, AppContext? app, Uri? initialLocation, WidgetBuilder? loading, WidgetBuilder? notFound, RouterErrorBuilder? error, RouterInitialState? initialState})
Creates a router from manually assembled or generated routes.
factory

Properties

app → AppContext
Application services available to page loaders.
final
backButtonDispatcher → BackButtonDispatcher?
The BackButtonDispatcher that is used to configure the Router.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
location → Uri
The active location.
no setteroverride
routeInformationParser → RouteInformationParser<Object>?
The RouteInformationParser that is used to configure the Router.
finalinherited
routeInformationProvider → RouteInformationProvider?
The RouteInformationProvider that is used to configure the Router.
finalinherited
routerDelegate → RouterDelegate<Object>
The RouterDelegate that is used to configure the Router.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Releases listeners owned by this router.
go(Destination destination) → void
Navigates to destination, replacing the active matched branch.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
push<T>(Destination destination) → Future<T?>
Pushes destination above the active page stack.
override
replace(Destination destination) → void
Replaces the top-most navigation entry with destination.
override
toString() → String
A string representation of this object.
inherited

Operators

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