StandardAppRouter extension
An extension class that adds the Router functionality of StandardApp to Router.
- on
Properties
-
pageChildInstances
→ Map<
StandardPageInterface< Object?, Object?> , List<Page> > -
Available on Router, provided by the StandardAppRouter extension
Get a List of the actual pages of Page.no setter -
pageInstances
→ List<
Page> -
Available on Router, provided by the StandardAppRouter extension
The currentPage
history.no setter
Methods
-
getPageFactory<
T extends StandardPageWithResult< (R, E> , R extends Object?, E extends Object?>) → StandardPageWithResultFactory< T, R, E> -
Available on Router, provided by the StandardAppRouter extension
Get the factory class StandardPageWithResultFactory of StandardPageWithResult.T
is the type of the destination page.R
is the type of page data.E
is the data type of the value that the page returns. -
go<
T extends StandardPage< (R> , R extends Object?>R pageData, [ ]) → Future< void> -
Available on Router, provided by the StandardAppRouter extension
Navigate to the StandardPage of typeT
with the option to passpageData
during navigation.T
represents the type of the destination page, andR
signifies the type of page data. -
goWithResult<
T extends StandardPageWithResult< (R, E> , R extends Object?, E extends Object?>R pageData, [ ]) → Future< E?> -
Available on Router, provided by the StandardAppRouter extension
Navigate to the StandardPageWithResult of typeT
that returns a value, with the option to passpageData
during the navigation.T
is the type of the destination page.R
is the type of page data.E
is the data type of the value that the page returns.navigationMode
is optional and represents the mode of StandardPageNavigationMode to use during navigation. -
processInitialRoute(
) → void -
Available on Router, provided by the StandardAppRouter extension
Selects the initial page that the application should display and navigates to that page. If this initialization has already been performed, it does nothing. -
removeRoute(
BuildContext context) → void -
Available on Router, provided by the StandardAppRouter extension
Remove the nearest page incontext
, if it exists. Do nothing if it doesn't exist. -
route(
String location, [ ]) → void -
Available on Router, provided by the StandardAppRouter extension
Navigate to a page with the specifiedlocation
.navigationMode
represents the mode of StandardPageNavigationMode to use during navigation (optional).