I pushed(with named routes) few screens like so,
BaseScreen >>(pushNamed) ScreenOne >>(pushNamed) ScreenTwo >>(pushNamed) ScreenThree >>(pushNamed) ScreenFour
While I am at ScreenFour what I wanted was that instead of just pushing ScreenFour to the stack, to remove ScreenThree and ScreenTwo from the stack and then have ScreenFour at top of the stack.
so at the end while im at ScreenFour the stack should look like,
BaseScreen >> ScreenOne >> ScreenFour.
How can I achieve this in flutter?