center property

RenderSliver center

The first child in the GrowthDirection.forward growth direction.

Children after center will be placed in the axisDirection relative to the center. Children before center will be placed in the opposite of the axisDirection relative to the center.

The center must be a child of the viewport.

Implementation

RenderSliver get center => _center;
void center= (RenderSliver value)

Implementation

set center(RenderSliver value) {
  if (value == _center)
    return;
  _center = value;
  markNeedsLayout();
}