StandardAppApp extension
An extension class that adds references to the Router and Plugin functionalities of StandardApp to App.
Properties
-
Available on App<
The current Navigator from StandardAppPlugin.delegate.Object> , provided by the StandardAppApp extensionno setter -
Available on App<
The BuildContext of the current Navigator from StandardAppPlugin.delegate.Object> , provided by the StandardAppApp extensionno setter -
Available on App<
The root Navigator from StandardAppPlugin.delegate.Object> , provided by the StandardAppApp extensionno setter -
Available on App<
The BuildContext of the root Navigator from StandardAppPlugin.delegate.Object> , provided by the StandardAppApp extensionno setter - standardAppPlugin → StandardAppPlugin
-
Available on App<
Retrieves StandardAppPlugin from the App.Object> , provided by the StandardAppApp extensionno setter
Methods
-
generateLink<
P extends StandardPage< (R> , R extends Object?>R pageData) → String? -
Available on App<
Retrieve a deep link for the specifiedObject> , provided by the StandardAppApp extensionpageData(when the page that retrieves the deep link does not return a value).Pis the type of the destination page,Ris 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<
Retrieve a deep link for the specifiedObject> , provided by the StandardAppApp extensionpageData(when the page that retrieves the deep link returns a value).Pis the type of the destination page,Ris the type of page data, andEis 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, []) → Future< void> -
Available on App<
Navigate to the StandardPageWithResult of typeObject> , provided by the StandardAppApp extensionTthat returns a value, with the option to passpageDataduring the navigation.Tis the type of the destination page.Ris the type of page data.Eis the data type of the value that the page returns.navigationModeis optional and represents the mode of StandardPageNavigationMode to use during navigation.pushParentPageindicates whether to push the parent page when navigating to a child page. default isfalse. -
goWithResult<
T extends StandardPageWithResult< (R, E> , R extends Object?, E extends Object?>R pageData, []) → Future< E?> -
Available on App<
Navigate to the StandardPageWithResult of typeObject> , provided by the StandardAppApp extensionTthat returns a value, with the option to passpageDataduring the navigation.Tis the type of the destination page.Ris the type of page data.Eis the data type of the value that the page returns.navigationModeis optional and represents the mode of StandardPageNavigationMode to use during navigation.pushParentPageindicates whether to push the parent page when navigating to a child page. default isfalse. -
removeRoute(
[Object? result]) → void -
Available on App<
Pops the Navigator of StandardAppApp.navigator. This is used when context is not accessible.Object> , provided by the StandardAppApp extension -
route(
String link) → void -
Available on App<
Navigate to a page with the specifiedObject> , provided by the StandardAppApp extensionlink.linkis a string set in StandardPageFactory underlinks.pushParentPageindicates whether to push the parent page when navigating to a child page. default istrue.