direction property

AxisDirection get direction

Gets the up or down AxisDirection of this direction.

Implementation

AxisDirection get direction =>
    this == VerticalDirection.up ? AxisDirection.up : AxisDirection.down;