selectionAlignment property

SegmentSelectionAlignment selectionAlignment
final

Where the scrollable variant keeps its selected segment. Scrollable mode only.

SegmentSelectionAlignment.minimal (default) scrolls just enough for the selection to be visible; SegmentSelectionAlignment.center keeps it centered whenever the list allows — the picker behavior.

Implementation

final SegmentSelectionAlignment selectionAlignment;