How to get current route path in Flutter? : <p>While implementing <a href="https://stackoverflow.com/questions/45511549/permanent-view-with-navigation-bar-in-flutter">persistent bottom bar</a>, previous <a href="https://github.com/flutter/flutter/issues/10975" rel="noreferrer">route need to be restored</a> when a button in the <a href="https://material.io/guidelines/components/bottom-navigation.html" rel="noreferrer">bottom bar</a> was clicked. </p>

<p>When a button in the bottom bar is clicked, its current route path (<a href="https://docs.flutter.io/flutter/widgets/Navigator-class.html" rel="noreferrer">/a/b/c</a>) is saved and previously saved route is restored according to the button click.</p>

<p>Conceptually user will think each button as a workspace and its state is never get lost (including back stack). User can safely switch from one workspace to another.</p>

<p>How to get current route path in Flutter, when the routing is <a href="https://docs.flutter.io/flutter/widgets/Navigator/popUntil.html" rel="noreferrer">rewinding to root</a>?</p>
