Update doc of SemanticsProperties.identifier (#149915)

Updating the docs to reflect the change in https://github.com/flutter/engine/pull/53278.

`Semantics(identifier: '...')` can now be used on web to facilitate testing and DOM lookup when it comes to semantics nodes.
This commit is contained in:
Mouad Debbar
2024-07-09 19:09:15 -04:00
committed by GitHub
parent 745d2b4d2a
commit a99042e102

View File

@@ -1219,6 +1219,9 @@ class SemanticsProperties extends DiagnosticableTree {
/// It'll be appear in accessibility hierarchy as `resource-id`.
///
/// On iOS, this will set `UIAccessibilityElement.accessibilityIdentifier`.
///
/// On web, this will set a `flt-semantics-identifier` attribute on the DOM element
/// that corresponds to the semantics node.
/// {@endtemplate}
final String? identifier;