mainAxisAlignment property

MainAxisAlignment? mainAxisAlignment
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:

Implementation

final MainAxisAlignment? mainAxisAlignment;