isChecked property

bool? isChecked
final

Optional checked state of a radio button reported to assistive technology, for a button that is one option of a set where exactly one is chosen (for example in GlassToggle.button with semanticsInMutuallyExclusiveGroup).

When null (the default), the button omits checked semantics. When true or false, the button reads as an option of a mutually exclusive group that is checked or not, in place of the button role, which macOS gives precedence over the radio button role. Pair it with isSelected on iOS, which reads a radio button's selected trait rather than its checked state. Takes precedence over isToggled.

Implementation

final bool? isChecked;