resolveAxis static method

Axis resolveAxis(
  1. CSSStyleDeclaration style
)

Implementation

static Axis resolveAxis(CSSStyleDeclaration style) {
  String? sliverDirection = style[SLIVER_DIRECTION];
  switch (sliverDirection) {
    case ROW:
      return Axis.horizontal;

    case COLUMN:
    default:
      return Axis.vertical;
  }
}