I understand that Navigator.pushReplacementNamed allows you to replace the current screen on the back stack, but how do you handle cases where the current screen already has its own back button?
I've noticed if I use the .pushReplacementNamed function in this case, it retains the back button from the previous screen, but I would like to have this flow:
Screen A .pushNamed -> Screen B (able to navigate back to A) .pushReplacementNamed -> Screen C (should not be able to navigate back to either B or A)