mainAxis property Null safety

Axis mainAxis

The axis (horizontal or vertical) corresponding to the current axisDirection.

Implementation

Axis get mainAxis => axisDirectionToAxis(axisDirection);