selectedIndex property
final
The index into destinations for the current selected NavigationDrawerDestination or null if no destination is selected.
A valid selectedIndex satisfies 0 <= selectedIndex < number of NavigationDrawerDestination.
For an invalid selectedIndex like -1
, all destinations will appear unselected.
Implementation
final int? selectedIndex;