StandardAppApp extension

An extension class that adds references to the Router and Plugin functionalities of StandardApp to App.

on

Properties

currentNavigator NavigatorState

Available on App<Object>, provided by the StandardAppApp extension

The current Navigator from StandardAppPlugin.delegate.
no setter
currentNavigatorContext BuildContext

Available on App<Object>, provided by the StandardAppApp extension

The BuildContext of the current Navigator from StandardAppPlugin.delegate.
no setter

Available on App<Object>, provided by the StandardAppApp extension

The root Navigator from StandardAppPlugin.delegate.
no setter

Available on App<Object>, provided by the StandardAppApp extension

The BuildContext of the root Navigator from StandardAppPlugin.delegate.
no setter
standardAppPlugin StandardAppPlugin

Available on App<Object>, provided by the StandardAppApp extension

Retrieves StandardAppPlugin from the App.
no setter

Methods

Available on App<Object>, provided by the StandardAppApp extension

Retrieve a deep link for the specified pageData (when the page that retrieves the deep link does not return a value). P is the type of the destination page, R is the type of page data, and they should be consistent with what you have set in your StandardPage.
generateLinkWithResult<P extends StandardPageWithResult<R, E>, R extends Object?, E extends Object?>(R pageData) String?

Available on App<Object>, provided by the StandardAppApp extension

Retrieve a deep link for the specified pageData (when the page that retrieves the deep link returns a value). P is the type of the destination page, R is the type of page data, and E is the data type of the value that the page returns. These should be the same as what you set in your StandardPageWithResultFactory.
go<T extends StandardPage<R>, R extends Object?>(R pageData, [StandardPageNavigationMode? navigationMode]) Future<void>

Available on App<Object>, provided by the StandardAppApp extension

Navigate to the StandardPageWithResult of type T that returns a value, with the option to pass pageData 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. pushParentPage indicates whether to push the parent page when navigating to a child page. default is false.
goWithResult<T extends StandardPageWithResult<R, E>, R extends Object?, E extends Object?>(R pageData, [StandardPageNavigationMode? navigationMode]) Future<E?>

Available on App<Object>, provided by the StandardAppApp extension

Navigate to the StandardPageWithResult of type T that returns a value, with the option to pass pageData 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. pushParentPage indicates whether to push the parent page when navigating to a child page. default is false.
removeRoute([Object? result]) → void

Available on App<Object>, provided by the StandardAppApp extension

Pops the Navigator of StandardAppApp.navigator. This is used when context is not accessible.
route(String link) → void

Available on App<Object>, provided by the StandardAppApp extension

Navigate to a page with the specified link. link is a string set in StandardPageFactory under links. pushParentPage indicates whether to push the parent page when navigating to a child page. default is true.