Navigation Rail State
A state holder that controls whether a NavigationRail is collapsed or expanded.
Create it with rememberNavigationRailState and pass it to NavigationRail to make the rail expandable. The width and item-layout transitions are driven declaratively by the rail from currentValue, so mutating the state via expand, collapse or toggle is enough to animate.
Parameters
initial Value
The initial NavigationRailValue.