go<T extends StandardPage<R> , R extends Object?> method
Future<void>
go<T extends StandardPage<R> , R extends Object?>(
- R pageData, [
- bool pushParentPage = false
Navigate to the StandardPage of type T with the option to pass pageData
during navigation.
T represents the type of the destination page, and R signifies the type of page data.
navigationMode is an optional mode of StandardPageNavigationMode to use during navigation.
pushParentPage indicates whether to push the parent page when navigating to a child page. default is false.
When the page is a StandardPageWithNestedNavigator and that page does not yet exist, the default first page within the nested navigator is also automatically pushed. Additionally, if the current page is the same StandardPageWithNestedNavigator, the page stack within the nested navigator is cleared, and the default first page is pushed again.
Implementation
Future<void> go<T extends StandardPage<R>, R extends Object?>(
R pageData, [
StandardPageNavigationMode? navigationMode,
bool pushParentPage = false,
]) {
return Router.of(this).go<T, R>(pageData, navigationMode, pushParentPage);
}