onDestinationSelected property
final
Called when one of the NavigationDrawerDestination children is selected.
This callback usually updates the int passed to selectedIndex.
Upon updating selectedIndex, the NavigationDrawer will be rebuilt.
Implementation
final ValueChanged<int>? onDestinationSelected;