isSelected property

bool? isSelected
final

Optional selection state reported to assistive technology (VoiceOver, TalkBack).

When null (the default), the button omits selection semantics so plain action buttons do not announce "not selected". When true or false, the button participates in selection semantics (Semantics.selected).

Implementation

final bool? isSelected;