selected property

bool? selected
final

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 (no selected semantics 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's selectedIconColor (when iconColor is null), 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;