mainAxis property
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:
- TwoDimensionalScrollView, which assigns the PrimaryScrollController to the TwoDimensionalScrollView.mainAxis and shares this value.
Implementation
Axis get mainAxis => _mainAxis;
Implementation
set mainAxis(Axis value) {
if (_mainAxis == value) {
return;
}
_mainAxis = value;
// Child order needs to be resorted, which happens in performLayout.
markNeedsLayout();
}