mainAxisAlignment property
final
How the destinations should be placed along the vertical axis.
When there is extra vertical space in the NavigationRail, this property controls the alignment and spacing of the items. For example, setting this to MainAxisAlignment.spaceEvenly will distribute the destinations equally along the available vertical space.
When this property is not null, groupAlignment is ignored.
If null, the layout behaves as if MainAxisAlignment.start was specified.
See also:
- Column.mainAxisAlignment, which describes the different values and their effects on the layout.
Implementation
final MainAxisAlignment? mainAxisAlignment;