mainAxis property

Axis mainAxis

The major axis of the two dimensions.

This is can be used by subclasses to determine paint order, visitor patterns like row and column major ordering, or hit test precedence.

See also:

Implementation

Axis  get mainAxis => _mainAxis;
void mainAxis=(Axis value)

Implementation

set mainAxis(Axis value) {
  if (_mainAxis == value) {
    return;
  }
  _mainAxis = value;
  // Child order needs to be resorted, which happens in performLayout.
  markNeedsLayout();
}