flipAxis method

Axis flipAxis(
  1. Axis direction
)

Implementation

Axis flipAxis(Axis direction) {
  switch (direction) {
    case Axis.horizontal:
      return Axis.vertical;
    case Axis.vertical:
      return Axis.horizontal;
  }
}