crossAxis property

Axis get crossAxis

Gets the vertical or horizontal cross Axis of this direction.

Implementation

Axis get crossAxis => this == AxisDirection.up || this == AxisDirection.down
    ? Axis.horizontal
    : Axis.vertical;