onDestinationSelected property Null safety

ValueChanged<int>? onDestinationSelected
final

Called when one of the destinations is selected.

This callback usually updates the int passed to selectedIndex.

Upon updating selectedIndex, the NavigationBar will be rebuilt.

Implementation

final ValueChanged<int>? onDestinationSelected;