crossAxisAlignment property

  1. @override
CrossAxisAlignment crossAxisAlignment
override

How the children should be placed along the cross axis.

If the direction is Axis.horizontal, and the crossAxisAlignment is either CrossAxisAlignment.start or CrossAxisAlignment.end, then the verticalDirection must not be null.

If the direction is Axis.vertical, and the crossAxisAlignment is either CrossAxisAlignment.start or CrossAxisAlignment.end, then the textDirection must not be null.

Implementation

@override
CrossAxisAlignment get crossAxisAlignment => _crossAxisAlignment;
  1. @override
void crossAxisAlignment=(CrossAxisAlignment value)
override

Implementation

@override
set crossAxisAlignment(CrossAxisAlignment value) {
  assert(value != null);
  if (_crossAxisAlignment != value) {
    _crossAxisAlignment = value;
    markNeedsLayout();
  }
}