mainAxisSize property

MainAxisSize mainAxisSize

How much space should be occupied in the main axis.

After allocating space to children, there might be some remaining free space. This value controls whether to maximize or minimize the amount of free space, subject to the incoming layout constraints.

If some children have a non-zero flex factors (and none have a fit of FlexFit.loose), they will expand to consume all the available space and there will be no remaining free space to maximize or minimize, making this value irrelevant to the final layout.


MainAxisSize get mainAxisSize => _mainAxisSize;
void mainAxisSize=(MainAxisSize value)


set mainAxisSize(MainAxisSize value) {
  if (_mainAxisSize != value) {
    _mainAxisSize = value;