mainAxis property
LayoutAxis
get
mainAxis
A getter for returning the LayoutAxis whose LayoutAxis.axisIndex can be used with Vector2s to get the corresponding axis values.
Implementation
LayoutAxis get mainAxis =>
this == Direction.horizontal ? LayoutAxis.x : LayoutAxis.y;