In bloc
class, once the api return a success status, I want it return to logOut page. When back button is clicked, the app should exit.
Navigator.pushReplacementNamed(context, LoginOut.ROUTE);
When I click back button, I expect the app will exit, but it back to previous page instead. I thought pushReplacementNamed
should work?