flexAxisOf function

Axis? flexAxisOf(
  1. Node n
)

The main axis of a row, column or flex node (a flex by its FlexProps.direction); null for any other node.

Implementation

Axis? flexAxisOf(Node n) => switch (n.type) {
      'row' => Axis.horizontal,
      'column' => Axis.vertical,
      'flex' => n.props.get(FlexProps.direction),
      _ => null,
    };