getCrossAxisDirection static method

AxisDirection getCrossAxisDirection(
  1. Axis sliverAxis
)

Implementation

static AxisDirection getCrossAxisDirection(Axis sliverAxis) {
  switch (sliverAxis) {
    case Axis.horizontal:
      return AxisDirection.down;
    case Axis.vertical:
    default:
      return AxisDirection.right;
  }
}