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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user