direction property

Axis direction
final

The direction to use as the main axis.

If you know the axis in advance, then consider using a Row (if it's horizontal) or Column (if it's vertical) instead of a Flex, since that will be less verbose. (For Row and Column this property is fixed to the appropriate axis.)

Implementation

final Axis direction