I am trying to implement custom logout solution for my application, where no matter where user currently is, once the Logout button is clicked, app will navigat
Logout button
You don't need to pass listen:false, instead simply call
listen:false
Provider.of(context).logout()
So your Profile class would look like
class Profile with ChangeNotifier { bool isAuthentificated = false; logout() { isAuthentificated = false; notifyListeners(); } }