center property

RenderSliver? center

The first child in the GrowthDirection.forward growth direction.

This child that will be at the position defined by anchor when the ViewportOffset.pixels of offset is 0.

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();
}