onDestinationSelected property
Called when one of the destinations is selected.
The stateful widget that creates the adaptive scaffold needs to keep
track of the index of the selected AdaptiveScaffoldDestination and call
setState
to rebuild the adaptive scaffold with the new selectedIndex.
Implementation
final ValueChanged<int>? onDestinationSelected;