alignment property

WrapAlignment alignment

How the children within a run should be placed in the main axis.

For example, if alignment is WrapAlignment.center, the children in each run are grouped together in the center of their run in the main axis.

Defaults to WrapAlignment.start.

See also:

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

Implementation

WrapAlignment get alignment => _alignment;
void alignment=(WrapAlignment value)

Implementation

set alignment (WrapAlignment value) {
  if (_alignment == value) {
    return;
  }
  _alignment = value;
  markNeedsLayout();
}