crossAxisAlignment property Null safety

WrapCrossAlignment crossAxisAlignment

How the children within a run should be aligned relative to each other in the cross axis.

For example, if this is set to WrapCrossAlignment.end, and the direction is Axis.horizontal, then the children within each run will have their bottom edges aligned to the bottom edge of the run.

Defaults to WrapCrossAlignment.start.

See also:

  • alignment, which controls how the children within each run are placed relative to each other in the main axis.
  • runAlignment, which controls how the runs are placed relative to each other in the cross axis.

Implementation

WrapCrossAlignment get crossAxisAlignment => _crossAxisAlignment;
void crossAxisAlignment=(WrapCrossAlignment value)

Implementation

set crossAxisAlignment (WrapCrossAlignment value) {
  assert(value != null);
  if (_crossAxisAlignment == value) {
    return;
  }
  _crossAxisAlignment = value;
  markNeedsLayout();
}