setpopState function
void
setpopState()
Function used to set pop/backward state during page routing
The function is used to update the GlobalRoute.currentRoute with the new route when moving back a page in a Pheasant Application.
Implementation
void setpopState() {
onBack((event) {
GlobalRoute.currentRoute = currentPath;
});
}