semanticLabel property

String? semanticLabel
final

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;