isToggled property
Optional toggle state reported to assistive technology (VoiceOver, TalkBack).
When null (the default), the button omits toggled semantics. When true
or false (for example in GlassToggle.button), the button exposes
toggle semantics (Semantics.toggled) on its single accessibility node,
in place of the button role: it reads as a switch that is on or off.
macOS gives the button role precedence over the switch role and then
reports no on/off state; iOS and Android read any toggled node as a
switch.
Implementation
final bool? isToggled;