Arsildo Murati
val navBackStackEntry by navController.currentBackStackEntryAsState()
val currentDestination = navBackStackEntry?.destination
val isTopLevelDestination = currentDestination?.route == OrdersRoute
@Serializable object OrdersRoute
Ian Lake
val isTopLevelDestination = currentDestination.hasRoute<OrdersRoute>()
A modern programming language that makes developers happier.