semanticsChecked property

bool? semanticsChecked
final

Whether this row is the checked choice of a list of options (such as a row with a checkmark), reported as a radio button that is checked or not, in place of the button role; for assistive technologies only.

macOS gives the button role precedence over radio button and reports no selected state for any role, so a selected flag around the row does not reach VoiceOver there; a radio button's checked state does, as AXValue 1 or 0. On iOS and macOS the row is also reported as selected when checked, as Flutter's radio buttons are, since iOS reads a radio button's selected trait rather than its checked state. Unlike GlassMenuItem, which takes semanticsSelected and semanticsChecked separately, the tile derives the selected state from this one value per platform, as Flutter's RawRadio does, so an app sets a single value on every platform and the two states cannot disagree.

Applies to a row with onTap or onLongPress. null (the default) keeps the button.

Implementation

final bool? semanticsChecked;