pushAndClearStack method
Clears the entire stack and pushes a named route.
Use this for logout or onboarding completion.
Example: pushAndClearStack('/login')
Implementation
void pushAndClearStack(String route) => GoRouter.of(_ctx).go(route);
Clears the entire stack and pushes a named route.
Use this for logout or onboarding completion.
Example: pushAndClearStack('/login')
void pushAndClearStack(String route) => GoRouter.of(_ctx).go(route);