selected property
Optional selection state when this button represents a navigation destination (for example a detached Search tab in GlassTabBar.bottom).
null(default): Treated as a plain action button (noselectedsemantics trait; the main tab pill keeps its own selection).false: Announces"not selected"to screen readers while the main tab pill displays its selected tab normally.true: Announces"selected"to screen readers, applies the bar'sselectedIconColor(when iconColor isnull), hides the main tab pill's selection indicator, and clears selection semantics on the pill tabs so only this destination is announced as selected.
Implementation
final bool? selected;