semanticLabel property
Describes what this switch controls (e.g. "Haptics", "Dark mode") —
paired with the Semantics.toggled state so a screen reader announces
e.g. "Haptics, on" instead of just "on".
Implementation
final String? semanticLabel;
Describes what this switch controls (e.g. "Haptics", "Dark mode") —
paired with the Semantics.toggled state so a screen reader announces
e.g. "Haptics, on" instead of just "on".
final String? semanticLabel;