semanticLabel property

String? semanticLabel
final

Fully overrides the VoiceOver / TalkBack announcement for this badge.

When set, this string is used verbatim as the Semantics.label. Leave null to use the default:

  • Count badges: "$count notifications" / "$maxCount+ notifications"
  • Dot badges: "Active"

Use this for non-notification domains, e.g.:

semanticLabel: '${downloads.length} downloads'

Implementation

final String? semanticLabel;