semanticLabel property

String? semanticLabel
final

What VoiceOver reads for the switch.

A native switch cannot borrow the text next to it the way a Flutter widget in MergeSemantics can, so without this VoiceOver announces it with no name. Pass the same text as its visible label, e.g. 'Wi-Fi'.

Implementation

final String? semanticLabel;