I want to call a provider as well as navigate to another page simultaneously by pressing/tapping a button in Flutter?
Is this possible?
More specifically what I want is when I press the button the current Navigator should pop() out and meanwhile call a provider too.