tracksSelection property

bool tracksSelection
final

Whether this region participates in a mutual exclusivity group (like a segmented control).

When true, unselected states emit hasSelectedState: true (with selected: false) so screen readers announce "not selected", making it clear this is a selectable option among others. When false (e.g. for standard buttons), unselected states omit the selected trait entirely to avoid confusing announcements.

Implementation

final bool tracksSelection;