semanticsLabel property

String? semanticsLabel

An alternative semantics label for this text.

If present, the semantics of this widget will contain this value instead of the actual text. This will overwrite any of the semantics labels applied directly to the TextSpans.

This is useful for replacing abbreviations or shorthands with the full text value:

AutoSizeText(r'$$', semanticsLabel: 'Double dollars')


final String? semanticsLabel;