axis property

Axis axis

Gets the vertical or horizontal Axis of this direction.

Implementation

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