title: Flutter return to home page
body: <p>I have made an app that has quite some routing in it, pushing multiple fullscreen dialogs after each other. But from one dialog I want to close all and return to the homepage. How can I do that?</p>
  
  <p>I don't want to push the homepage again, because then I have all these dialogs still in my navigation history. Is <code>pushReplacement</code> the right way? It doesn't seem to be because it only deletes the last entry in the navigation history, so if i press back, i get to the second last dialog...</p>