selectedIndex property Null safety
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 desitinations will appear unselected.
Implementation
final int? selectedIndex;