After obtaining the NavDestination collection through navPathStack, you can use the following method to query parameters:
- Call getParamByIndex to obtain the parameter information of the NavDestination page specified by index.
- Call getParamByName to obtain the parameter information of all NavDestination pages with the specified name.
Reference
NavPathStack