axis property

Axis get axis

Axis for ArrowDirection to get the currect axis

Implementation

Axis get axis {
  switch (this) {
    case ArrowDirection.bottom:
      return Axis.vertical;
    case ArrowDirection.left:
      return Axis.horizontal;
    case ArrowDirection.top:
      return Axis.vertical;
    case ArrowDirection.right:
      return Axis.horizontal;
    default:
      return Axis.horizontal;
  }
}