aboutToAppear: executed after the creation of the custom component and before the execution of its build() function (before the NavDestination is created), allowing state variables to be changed in this method, the changes will take effect in the subsequent execution of the build() function.
onWillAppear: executed after the NavDestination is created and before it is mounted to the component tree, changes to state variables in this method will take effect on the current frame display.
onAppear: generic lifecycle event, executed when the NavDestination component is mounted to the component tree.
onWillShow: executed before the NavDestination component layout is displayed, at this time the page is not visible (the application will not be triggered by switching to the foreground).
onShown: Executed after the layout of NavDestination component is displayed, when the page layout has been completed.
onWillHide: executed before the NavDestination component triggers hide (not triggered when app switches to background).
onHidden: executed after the NavDestination component triggers hiding (non-top-of-stack page push into the stack, top-of-stack page pop out of the stack or app switch to background).
onWillDisappear: executed before the NavDestination component is about to be destroyed, if there is a transition animation, it will be triggered before the animation (top-of-stack page pops out of the stack).
onDisappear: generic lifecycle event, executed when the NavDestination component is unloaded from the component tree and destroyed.
aboutToDisappear: executed before the custom component destructs and destroys, state variables are not allowed to be changed in this method.