center property

Key center
final

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 the key of one of the slivers built by buildSlivers.

Of the built-in subclasses of ScrollView, only CustomScrollView supports center; for that class, the given key must be the key of one of the slivers in the CustomScrollView.slivers list.

See also:

  • anchor, which controls where the center as aligned in the viewport.

Implementation

final Key center