title: Jetpack Compose Navigation: Get route of current destination as string
body: <p>I'm using NavHost and a NavHostController to navigate in my Jetpack Compose application. To specify destinations, I use string-based routes:</p>
  <pre><code>NavHost(
      navController,
      startDestination = &quot;FOO&quot;
  ) {
      composable(&quot;FOO&quot;) {
          Foo()
      }
      composable(&quot;BAR&quot;) {
          Bar()
      }
  }
  </code></pre>
  <p>I would like to retrieve the current route as a string (<code>FOO</code> or <code>BAR</code>) using the <code>navController</code>. The closest alternative I can find is <code>navController.currentDestination.id</code> that, however, returns a numeric ID, not the route as a string.</p>
  <p>Is there any way to retrieve this value?</p>
  <p>I'm using Jetpack Compose beta01 and Compose Navigation alpha08.</p>