semanticsLabel property Null safety

String? semanticsLabel

An alternative semantics label for this TextSpan.

If present, the semantics of this span will contain this value instead of the actual text.

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

TextSpan(text: r'$$', semanticsLabel: 'Double dollars')


final String? semanticsLabel;