Basically I want to Navigator.of(context).pop();
but without the animation.
From reading the docs I see that you can override this animations only when pushing a route. In my case, I don't know in advance if I want to show the pop animation or not when I remove the route, so I need a solution that allows me to specify if I want this animation by the time I call pop()
Is this possbile?