I want to create a generic public method navigate the application to login screen if any response is: unauthenticated
.
The problem is I don't have the context
to use it in my Navigator
.
In Android I used to use: getApplicationContext()
, how can I do that in Flutter?