I have to go back to my first router from nth router in flutter using GoRouter

19 Views Asked by At

I have sequence of routing like A->B->C->D, now i am in my fourth router, its a kind of success page after an api call, now when I tap on done button on route D it should bring user back to my first router A also it should clear all B,C,D. is there anyway in achieving this using GoRouter package in flutter, thanks in advance.

0

There are 0 best solutions below