NavDestination

data class NavDestination(val key: String, val label: String, val icon: ImageVector, val selected: Boolean, val onSelect: () -> Unit)(source)

One top-level destination in AdaptiveNavigationShell.

key is the caller's own route identity — this module deliberately knows nothing about the navigation library in use, so the shell can sit above navigation-compose or navigation3 without caring which.

Constructors

Link copied to clipboard
constructor(key: String, label: String, icon: ImageVector, selected: Boolean, onSelect: () -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
val key: String
Link copied to clipboard
Link copied to clipboard
val onSelect: () -> Unit
Link copied to clipboard